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