Difference between revisions of "Aws ec2 terminate-instances"

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