- Newest
- Most votes
- Most comments
I understand you're experiencing difficulty stopping your EC2 instance. Here are the steps you can take to resolve this issue:
If your instance is stuck in the "stopping" state, you can attempt a force stop using the AWS CLI with the following command:
aws ec2 stop-instances --instance-ids <your-instance-id> --force
If you need to bypass the graceful OS shutdown during the force stop, you can add the --skip-os-shutdown option:
aws ec2 stop-instances --instance-ids <your-instance-id> --force --skip-os-shutdown
If force stopping continues to fail and you need immediate assistance, I recommend visiting the AWS Support Center at https://console.aws.amazon.com/support/ to add correspondence to your existing case or create a new technical support case. The support team can investigate the underlying host computer issues that may be preventing the instance from stopping properly.
Please note that there is no charge for instance usage while an instance is in the "stopping" state or any other state except "running."
If you ultimately need to replace the instance, you can create an Amazon Machine Image (AMI) from the stuck instance and launch a new instance from that AMI as an alternative solution.
Sources
Troubleshoot Amazon EC2 instance stop issues - Amazon Elastic Compute Cloud
The cause is often an issue with the underlying host computer or the OS failing to respond. Are you able to log in to the EC2 instance and shut down the OS?
Relevant content
asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
