Pravin
Pravin

Reputation: 3321

Terminate EC2 instance using command line API

I am having AWS EC2 instance and I am using it by putty.

I have also downloaded the EC2 command line API to that ec2 instance.

Now i want to terminate EC2 instance within same EC2 instance using EC2 command line API.

How can i terminate EC2 instance ?

Upvotes: 1

Views: 2207

Answers (1)

Smita
Smita

Reputation: 4634

I think you are looking for ec2-terminate-instances command part of ec2-api-tools, check out here

PROMPT> ec2-terminate-instances <intance_id>

Answers for the question here How can I kill all my EC2 instances from the command line? can also help you

Upvotes: 3

Related Questions