I'm starting a Windows stock image via Bamboo. The instance starts up relatively quickly, but the elastic agent hangs and then shuts down 40 minutes later. This has happened multiple times - it always shuts down after 40 minutes. Take a look at the log:
Apr 21, 2015 10:12:11 AM Requested that new elastic instance be created for configuration: Windows stock image / ami-6697dd0e
Apr 21, 2015 10:12:11 AM Elastic instance [i-f3118c0e] transitioned from STARTING to IDENTIFIED.
Apr 21, 2015 10:12:32 AM Elastic instance [i-f3118c0e] transitioned from IDENTIFIED to RUNNING.
Apr 21, 2015 10:52:55 AM Elastic instance [i-f3118c0e] transitioned from RUNNING to SHUTTING_DOWN.
Apr 21, 2015 10:53:35 AM Elastic instance [i-f3118c0e] transitioned from SHUTTING_DOWN to TERMINATED.
Apr 21, 2015 10:53:35 AM Detected that the elastic instance [i-f3118c0e] has been terminated.
I have edited the Bamboo Elastic Configuration variable "Idle agent shutdown delay" to be 1000 minutes. It was previously 40. I saw no indication that the Bamboo server needed to be restarted to apply this.
Why does it shut down consistently after 40 minutes?