Difference between revisions of "Aws ec2 terminate-instances"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 21: Line 21:
  
 
== Related commands ==
 
== Related commands ==
* <code>[[aws ec2 terminate-instances]]</code>
+
* <code>[[aws ec2 describe-instances]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 07:54, 18 April 2021

https://docs.aws.amazon.com/cli/latest/reference/ec2/terminate-instances.html

aws ec2 terminate-instances --profile YOUR_PROFILE --instance-ids i-05192273e61157f67
{
    "TerminatingInstances": [
        {
            "CurrentState": {
                "Code": 32,
                "Name": "shutting-down"
            },
            "InstanceId": "i-05192273e61157f67",
            "PreviousState": {
                "Code": 16,
                "Name": "running"
            }
        }
    ]
}

Related commands

See also

Advertising: