문제

I am installing AWS Autoscaling tools on linux redhat, But unfortunately the as-cmd command is not working.

I am getting this error :

-bash: as-cmd: command not found

How to resolve the error ?

Any lead is appreciated

도움이 되었습니까?

해결책

To Answer your question:

run below:

$ updatedb
$ locate as-cmd

This should provide you the path of the command like /usr/bin/as-cmd. Either you should use this complete path while running the command OR you need to update your $PATH variable to include this path. Google if you want to know how to update PATH variable.

Now, some suggestions:

You should not use as-cmd anymore. Please use AWS CLI. Here is the AWS CLI relevant autoscaling commands

The reason being, as-cmd is not maintained by Amazon anymore and all the old CLI features have been exported to AWS CLI. AWS CLI is a one stop shop for all the AWS Services unlike older CLIs where you had to install a separate CLI for individual services.

AWS CLI provides output in JSON format which is much more easier to parse.

BESIDES, You don't have to play with CLI for autoscaling. Now, you can do the same job via AWS Console.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top