1 Answer
- Newest
- Most votes
- Most comments
0
According to the docs:
When an EC2 instance is terminated using the terminate-instances command, the following is
registered at the OS level:
* The API request will send a button press event to the guest.
* Various system services will be stopped as a result of the button press event. systemd handles a graceful shutdown of the system. Graceful shutdown is triggered by the ACPI shutdown button press event from the hypervisor.
* ACPI shutdown will be initiated.
* The instance will shut down when the graceful shutdown process exits. There is no configurable OS shutdown time.
Relevant content
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 3 years ago
what is ment by 'guest'? Furthermore you say that there is no configurable shutdown time. Does that mean that the termination process will hang indefinately if the systemd process does not shutdown properly and hangs?
Hi Viridios, According to Amazon User Guide for Linux Instances, if the instance OS does not shut down cleanly within a few minutes, a hard shutdown is performed. Even so, If the instance remains in the shutting-down state for several hours, Amazon EC2 treats it as a stuck instance and forcibly terminates it.
The guest is your instance, from the hypervisor point of view.
The guest is your instance, from the hypervisor point of view.