Why is my EC2 instance stuck in the stopping state?

Last updated: 2020-05-19

I tried to stop my Amazon Elastic Compute Cloud (Amazon EC2) instance and now it is stuck in the stopping state. How do I fix this?

Short description

Instances might appear "stuck" in the stopping state when there is a problem with the underlying hardware hosting the instance. This can also occur when hibernating a hibernation-enabled instance.

Note: To check the most recent state of your instance, choose the refresh icon in the Amazon EC2 console. Or, run the describe-instances command in the AWS Command Line Interface (AWS CLI).

If you receive errors when running AWS CLI commands, make sure that you’re using the most recent version of the AWS CLI.

In the following example, replace i-0123ab456c789d01e with the ID of the instance you're trying to stop:

aws ec2 describe-instances --instance-ids i-0123ab456c789d01e --output json

Check the State Code and Name in the JSON response:

"State": {
                        "Code": 64, 
                        "Name": "stopping"
                    },

Resolution

If your instance becomes stuck in the stopping state, refer to Troubleshooting stopping your instance.


Did this article help?


Do you need billing or technical support?