-
Suggestion
-
Resolution: Fixed
My use case is starting my elastic instances in the morning and shutting down in the evening because my load requirements follow that pattern. Theoretically BAM-3078 and BAM-3077 will achieve this.
I can script the starting up and shutting down of my instances today, but experimentation has shown that the EBS volume creation and mounting is not reliable, especially when multiple instances are started at once. I can ssh into the instances and see if the ebs volume was mounted, but I need the IP address of the machine first.
Currently the REST API can't help me since it returns only this sort of thing:
<response> − <instance> <id>i-97a481fe</id> <state>RUNNING</state> <uptime>3023836</uptime> </instance> − <instance> <id>i-47d1f42e</id> <state>RUNNING</state> <uptime>8406836</uptime> </instance> − <instance> <id>i-d1d5f0b8</id> <state>RUNNING</state> <uptime>9329837</uptime> </instance> − <instance> <id>i-3dd5f054</id> <state>RUNNING</state> <uptime>9586837</uptime> </instance> − <instance> <id>i-0bd4f162</id> <state>RUNNING</state> <uptime>9133837</uptime> </instance> </response>
To get what I want I have to either scrape the screen, hack bamboo or use the AWS API to determine the hostname in a separate remote call.