Difference between revisions of "Aws ec2 terminate-instances"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{lowercase}}
 
https://docs.aws.amazon.com/cli/latest/reference/ec2/terminate-instances.html
 
https://docs.aws.amazon.com/cli/latest/reference/ec2/terminate-instances.html
  
 +
[[aws ec2]] terminate-instances [[--instance-ids]] i-05192273e61157f67
  
<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 ==
 +
* <code>[[aws ec2 describe-instances]]</code>
 +
* <code>[[aws ec2 stop-instances]]</code>
 +
* <code>aws ec2 describe-instances | grep -iA2 -w state | grep Name</code>
 +
* <code>[[DisableApiTermination]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{aws ec2}}
 
* {{EC2}}
 
* {{EC2}}
* {{AWS}}
 
  
 
[[Category:AWS]]
 
[[Category:AWS]]

Latest revision as of 10:44, 16 January 2024

Advertising: