ec2-terminate-instances instance_id [instance_id ...]
instance_id
Terminates the specified instances.
ID of the instance that was assigned at launch.
Example: i-3ea74257
i-3ea74257
Yes
Amazon EC2 returns a table that contains the following information:
Output type identifier ("INSTANCE")
The instance ID of the instance being terminated
The state of the instance prior to being terminated
The new state of the instance
Amazon EC2 displays errors on stderr.
stderr
This example terminates the i-3ea74257 instance.
$ ec2-terminate-instances i-3ea74257 INSTANCE i-3ea74257 running shutting-down
$
INSTANCE i-3ea74257 running shutting-down
ec2-run-instances
ec2-describe-instances
Submit feedback about this site to: