ec2-terminate-instances
Syntax
ec2-terminate-instances
instance_id
[instance_id
...]
Description
Terminates the specified instances.
Options
Option | Description | Required |
---|---|---|
| ID of the instance that was assigned at launch. Example: | Yes |
Output
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
.
Example
This example terminates the i-3ea74257
instance.
$
ec2-terminate-instances i-3ea74257
INSTANCE i-3ea74257 running shutting-down