Aws ec2 terminate-instances

From wikieduonline
Jump to navigation Jump to search

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: