Difference between revisions of "Aws ec2 terminate-instances"

From wikieduonline
Jump to navigation Jump to search
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>
+
 
aws ec2 terminate-instances --profile YOUR_PROFILE --instance-ids i-05192273e61157f67
+
[[aws ec2]] terminate-instances --profile YOUR_PROFILE --instance-ids i-05192273e61157f67
{
+
{
    "TerminatingInstances": [
+
    "TerminatingInstances": [
        {
+
        {
            "CurrentState": {
+
            "CurrentState": {
                "Code": 32,
+
                "Code": 32,
                "Name": "shutting-down"
+
                "Name": "shutting-down"
            },
+
            },
            "InstanceId": "i-05192273e61157f67",
+
            "InstanceId": "i-05192273e61157f67",
            "PreviousState": {
+
            "PreviousState": {
                "Code": 16,
+
                "Code": 16,
                "Name": "running"
+
                "Name": "running"
            }
+
            }
        }
+
        }
    ]
+
    ]
}
+
}
</pre>
 
  
 
== Related commands ==
 
== Related commands ==

Revision as of 13:03, 23 August 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: