@sergchernata wrote:
I’m performing terraform apply, that destroys and creates a new ec2 instance.
The instance that gets destroyed has a shutdown script that takes several minutes to complete in order to gracefully shut down running software.
It seems that normal machine reboots and cycles properly fire up said script. However, when instance gets destroyed and re-created there are signs that during destruction the machine did not properly shut down.
My shutdown script listens for these events:
WantedBy=halt.target reboot.target shutdown.targetDoes terraform fire these events and await graceful ec2 shutdown before destruction? How can I make sure terraform apply allows my machine gracefully shut itself down before destruction?
Posts: 1
Participants: 1