Uploaded image for project: 'Bamboo'
  1. Bamboo
  2. BAM-4093

Add Elastic Instance hostname/IP address to REST API for listRunningInstances.action

    XMLWordPrintable

    Details

    • Feedback Policy:

      Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            bmccoy bmccoy
            Reporter:
            chris@atlassian.com Chris Mountford
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified