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 1: Line 1:
 
https://docs.aws.amazon.com/cli/latest/reference/ec2/terminate-instances.html
 
https://docs.aws.amazon.com/cli/latest/reference/ec2/terminate-instances.html
 
  
 
<pre>
 
<pre>
Line 20: Line 19:
 
}
 
}
 
</pre>
 
</pre>
 +
 +
== Related commands ==
 +
* <code>[[aws ec2 terminate-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: