I've configured automatic shutdown as follows:
Automatic shutdown EC2 instances will be automatically terminated 300 seconds after the agent goes offline
However after a build, the instance remained running for over an hour and I had to manually stop it.
Am I missign anything?
By default, any volumes that were created when an instance launched should be automatically deleted when the instance terminates (in other words, their DeleteOnTermination flags are set to true by default). However, any volumes that are attached after the instance is running are not - this is due to that DeleteOnTermination flag are set to false.
Configure the instance to automatically delete the EBS volumes after instance shutdown by setting the DeleteOnTermination flag to true and this has to be configured on AWS side.
More details available here:
https://confluence.atlassian.com/display/ONDEMANDKB/Delete+EBS+Volume+On+Instance+Termination+in+EC2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You've configured the shutdown that gets triggered when an agent dies (goes offline), not when it becomes idle. You need to configure "Idle agent shutdown delay" .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.