How can I kill all my instances from the command line? Is there a command for this or must I script it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As far as I know there isn’t an ‘all’ switch for the ec2-terminate-instances command. So you probably need to script it. It won’t be that hard. You only need to generate a comma separated list of your instances.
This is a python script I am using:
It uses boto library. This is not necessary for the specific task (a simple shell script will be enough), but it may be handy in many occasions.
Finally are you aware of Elasticfox extension for Firefox? This is by far the easiest way to access EC2.