ec2-terminate-instances
ec2-terminate-instances INSTANCEID [INSTANCEID ...]
All instances indicated by the respective INTANCEID specified on the command line are terminated. At least one INSTANCEID must be specified.
A table containing the following information is returned:
-
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.
Errors are displayed on stderr.
$
ec2-terminate-instances i-3ea74257
INSTANCE i-3ea74257 running shutting-down