Viewing the list of Bamboo stock images

Bamboo provides a collection of Amazon Machine Images (AMIs) that are ready for use or further customization. Each AMI is identified by its unique ID. For more information about the parameters of the stock images, see stock images.

Atlassian AMIs and their IDs may change with each minor or major Bamboo release.

Viewing a list of AMI IDs available for a release

To generate a list of AMI IDs for a Bamboo version:

  1. Save the following script as a .sh file:

    if [ $# -eq 0 ]; then
      echo "Usage: `basename $0` [5.8.3] (Your Bamboo version)"
      exit 0
    fi
     
    BAMBOO_VERSION=$1
    echo For Bamboo version: $BAMBOO_VERSION
    ELASTIC_VERSION="$(curl -v --silent https://maven.atlassian.com/content/groups/public/com/atlassian/bamboo/atlassian-bamboo/$BAMBOO_VERSION/atlassian-bamboo-$BAMBOO_VERSION.pom 2>&1 | grep \<elastic-image.version\> | sed -e 's/<[^>]*>//g' -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
     
    echo "Elastic bamboo version is $ELASTIC_VERSION"
     
    curl -v --silent https://maven.atlassian.com/content/groups/public/com/atlassian/bamboo/atlassian-bamboo-elastic-image/$ELASTIC_VERSION/atlassian-bamboo-elastic-image-$ELASTIC_VERSION.ami 2>&1 | grep image. 
    echo "REMEMBER: Use the image from the appropriate region!"

    You can also get the script file from this repo.

  2. In the terminal, go to the directory where you saved the file and run it with the following command:
./<name-of-your-file>.sh <your-bamboo-version>

 

 ./amis.sh 5.9.3

If you get the "Permission denied" error, you can modify the permissions of the .sh file with the following:

chmod +x <name-of-the-file>.sh


結果

Click the example to see the full script output.

 

For Bamboo 5.9.3, the results can be the following:

For Bamboo version: 5.9.3

Elastic bamboo version is 4.2

> GET /content/repositories/atlassian-public/com/atlassian/bamboo/atlassian-bamboo-elastic-image/4.2/atlassian-bamboo-elastic-image-4.2.ami HTTP/1.1
image.US_EAST_1.EBS.i386.linux.Amazon\ Linux=ami-489bd620
image.US_EAST_1.EBS.x86_64.linux.Amazon\ Linux=ami-949bd6fc
image.US_EAST_1.S3.i386.linux.Amazon\ Linux=ami-b69dd0de
image.US_EAST_1.S3.x86_64.linux.Amazon\ Linux=ami-889dd0e0
image.EU_CENTRAL_1.EBS.x86_64.linux.Ubuntu=ami-fac5f7e7
image.US_WEST_2.EBS.x86_64.linux.Ubuntu=ami-f7a686c7
image.US_EAST_1.EBS.x86_64.linux.Ubuntu=ami-1c247d74
image.ASIA_PACIFIC_SE_1.EBS.x86_64.linux.Ubuntu=ami-f6a691a4
image.EU_WEST_1.EBS.x86_64.linux.Ubuntu=ami-ddf969aa
image.ASIA_PACIFIC_NE_1.EBS.x86_64.linux.Ubuntu=ami-8946a989
image.US_WEST_1.EBS.x86_64.linux.Ubuntu=ami-95c92dd1
image.ASIA_PACIFIC_SE_2.EBS.x86_64.linux.Ubuntu=ami-0f0c7d35
image.SOUTH_AMERICA_1.EBS.x86_64.linux.Ubuntu=ami-e3972efe
image.US_EAST_1.EBS.x86_64.windows.Windows\ 2008=ami-976edafe
image.ASIA_PACIFIC_SE_1.EBS.x86_64.windows.Windows=ami-c21a2390
image.SOUTH_AMERICA_1.EBS.x86_64.windows.Windows=ami-f550d6e8
image.US_EAST_1.EBS.x86_64.windows.Windows=ami-50697038
image.EU_CENTRAL_1.EBS.x86_64.windows.Windows=ami-e0f4cafd
image.EU_WEST_1.EBS.x86_64.windows.Windows=ami-1f750268
image.US_WEST_2.EBS.x86_64.windows.Windows=ami-77764b47
image.ASIA_PACIFIC_NE_1.EBS.x86_64.windows.Windows=ami-b4f520b4
image.ASIA_PACIFIC_SE_2.EBS.x86_64.windows.Windows=ami-fb81ffc1
image.US_WEST_1.EBS.x86_64.windows.Windows=ami-6b3bd22f

トラブルシューティング

If the script above doesn't work, you can also find the list of Bamboo stock images in the following way:

  1. In the following URL:

    https://maven.atlassian.com/content/repositories/atlassian-public/com/atlassian/bamboo/atlassian-bamboo/$BAMBOO_VERSION/atlassian-bamboo-$BAMBOO_VERSION.pom

    change $BAMBOO_VERSION to the Bamboo version number for which you want to list the AMIs.

    For Bamboo 5.9.3:

    https://maven.atlassian.com/content/repositories/atlassian-public/com/atlassian/bamboo/atlassian-bamboo/5.9.3/atlassian-bamboo-5.9.3.pom
  2. Open the URL in a browser.
  3. In the atlassian-bamboo-$BAMBOO_VERSION.pom file (where $BAMBOO_VERSION is your version of Bamboo), find the elastic image version for the release. The image version (baseline) is stored as an elastic-image.version property.  
    Example
    For the version 5.9.7 (atlassian-bamboo-5.9.7.pom), the elastic image version was 4.2: 

     

    <elastic-image.version>4.2</elastic-image.version> 


     

  4. In the following URL:

    https://maven.atlassian.com/content/repositories/atlassian-public/com/atlassian/bamboo/atlassian-bamboo-elastic-image/$ELASTIC_VERSION/atlassian-bamboo-elastic-image-$ELASTIC_VERSION.ami

    change $ELASTIC_VERSION to the Bamboo elastic version number from Step 3.

    For Bamboo elastic version 4.2, which is the baseline for Bamboo 5.9.3:

    https://maven.atlassian.com/content/repositories/atlassian-public/com/atlassian/bamboo/atlassian-bamboo-elastic-image/4.2/atlassian-bamboo-elastic-image-4.2.ami
  5. Open the URL in a browser.
  6. The .ami file that opens contains the list of all stock AMI IDs available for the selected version of Bamboo.

    Make sure you choose the image from the correct region. For example:

    image.US_EAST_1.EBS.x86_64.linux.Ubuntu=ami-1c247d74

関連トピック

最終更新日: 2017 年 12 月 12 日

この翻訳に満足しましたか?

はい
いいえ
この記事についてのフィードバックを送信する

お探しの情報が見つかりませんか?

コミュニティへの質問

Powered by Confluence and Scroll Viewport.