There are four ways to perform a user-initiated instance termination: default terminate, terminate with skip OS shutdown, force terminate, and force terminate with skip OS shutdown. The following table compares the key differences between the termination methods:
Termination method Key purpose Use case CLI command Default terminate Normal instance shutdown with attempted graceful OS shutdown. Typical instance termination.aws ec2 terminate-instances \
--instance-id i-1234567890abcdef0
Terminate with skip OS shutdown Bypasses the graceful OS shutdown when terminating an instance. When bypassing graceful OS shutdown is required.
aws ec2 terminate-instances \
--instance-id i-1234567890abcdef0
\
--skip-os-shutdown
Force terminate Handles stuck instances. Attempts a default termination first; if instance fails to terminate, then forcibly terminates the instance. When instance is stuck in shutting-down
state.
aws ec2 terminate-instances \
--instance-id i-1234567890abcdef0
\
--force
Force terminate with skip OS shutdown Force terminates and bypasses the graceful OS shutdown when terminating an instance. When force termination and bypassing graceful OS shutdown is required.
aws ec2 terminate-instances \
--instance-id i-1234567890abcdef0
\
--force \
--skip-os-shutdown
For instructions on how to use each method, see the following:
How it works
Change termination protection
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4