Difference between revisions of "Aws ec2 terminate-instances"
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 | ||
− | + | [[aws ec2]] terminate-instances [[--profile]] YOUR_PROFILE --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" | |
− | + | } | |
− | + | } | |
− | + | ] | |
− | + | } | |
− | } | + | |
− | </ | + | == 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}} | ||
− | |||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 10:44, 16 January 2024
https://docs.aws.amazon.com/cli/latest/reference/ec2/terminate-instances.html
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" } } ] }
Related[edit]
aws ec2 describe-instances
aws ec2 stop-instances
aws ec2 describe-instances | grep -iA2 -w state | grep Name
DisableApiTermination
See also[edit]
- AWS EC2, AWS::EC2,
aws ec2
[describe-instances | describe-instance-status
|run-instances | terminate-instances | stop-instances
|tags
|describe-vpcs
|describe-addresses
|describe-availability-zones
|describe-subnets
|import-key-pair
|create-key-pair
|create-vpc
|create-internet-gateway
|modify-instance-attribute | ec2-instance-connect | get-console-output
] - AWS EC2, Amazon EC2 API,
aws ec2, AWS::EC2
, Amazon EC2 Spot Instances, CPU credits, Instance type, EC2 limitations, 169.254.169.254, Instance metadata and user data (IMDS),InstanceType, InstanceId
, Amazon EC2 Auto Scaling, AWS EC2 Instance Connect, launch template, lifecycle, AWS Security group (SG), Amazon EC2 Recycle Bin, Amazon EC2 Mac Instances, Global View
Advertising: