Quantcast
Channel: Terraform - HashiCorp Discuss
Viewing all articles
Browse latest Browse all 11357

Terraform AWS ec2 doesn't gracefully shut down

$
0
0

@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.target

Does 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

Read full topic


Viewing all articles
Browse latest Browse all 11357

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>