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` [7.2.4] (Your Bamboo version)"
      exit 0
    fi
     
    BAMBOO_VERSION=$1
    echo For Bamboo version: $BAMBOO_VERSION
    ELASTIC_VERSION="$(curl -L -v --silent https://packages.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 -L -v --silent https://packages.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!"
  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 7.2.4
tip/resting Created with Sketch.

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


結果

Select the example to see the full script output.


For Bamboo 7.2.4, the results can be the following:

For Bamboo version: 7.2.4

Elastic bamboo version is 6.23

> GET /content/groups/public/com/atlassian/bamboo/atlassian-bamboo-elastic-image/6.23/atlassian-bamboo-elastic-image-6.23.ami HTTP/2
< x-artifactory-filename: atlassian-bamboo-elastic-image-6.23.ami
< content-disposition: attachment; filename="atlassian-bamboo-elastic-image-6.23.ami"; filename*=UTF-8''atlassian-bamboo-elastic-image-6.23.ami
image.SOUTH_AMERICA_1.EBS.x86_64.linux.HVM.Ubuntu=ami-03c3d6d69adbc5946
image.EU_CENTRAL_1.EBS.x86_64.windows.HVM.Windows=ami-00a1727df3812c2d6
image.EU_WEST_3.EBS.x86_64.linux.HVM.Ubuntu=ami-0d65fbb37cfe81d00
image.SOUTH_AMERICA_1.EBS.x86_64.linux.PV.Ubuntu=ami-0471e1dc9b77376a9
image.US_WEST_1.EBS.x86_64.linux.PV.Ubuntu=ami-005e7ea0adfbae676
image.SOUTH_AMERICA_1.EBS.x86_64.windows.HVM.Windows=ami-01bf6de9c569da505
image.US_EAST_1.EBS.x86_64.linux.PV.Ubuntu=ami-0791f1d390f64157f
image.US_EAST_1.S3.x86_64.linux.PV.Amazon\ Linux=ami-0c89a893d848a8593
image.EU_WEST_3.EBS.x86_64.windows.HVM.Windows=ami-053a58739cc428775
image.ASIA_PACIFIC_SE_2.EBS.x86_64.linux.HVM.Ubuntu=ami-074ba1801d88c78f0
image.ASIA_PACIFIC_NE_1.EBS.x86_64.linux.PV.Ubuntu=ami-05d051f31169095da
image.AP_NE_2.EBS.x86_64.windows.HVM.Windows=ami-06d2a504ca4b877fa
image.US_EAST_2.EBS.x86_64.windows.HVM.Windows=ami-06e93f4ef8d13d47f
image.US_EAST_1.EBS.x86_64.linux.HVM.Ubuntu=ami-02d922f88e5fbbb00
image.US_WEST_2.EBS.x86_64.windows.HVM.Windows=ami-0db289e52d607daa3
image.AP_S_1.EBS.x86_64.windows.HVM.Windows=ami-09cc63730fd18cdbe
image.AP_S_1.EBS.x86_64.linux.HVM.Ubuntu=ami-014757183c34279b9
image.EU_WEST_2.EBS.x86_64.linux.HVM.Ubuntu=ami-0f8a4ff5beddc0420
image.EU_WEST_2.EBS.x86_64.windows.HVM.Windows=ami-06d2ec543b878d597
image.US_WEST_2.EBS.x86_64.linux.PV.Ubuntu=ami-053c2a69af96c9f47
image.US_EAST_1.EBS.x86_64.windows.HVM.Windows=ami-0922a872659cf255b
image.US_WEST_1.EBS.x86_64.windows.HVM.Windows=ami-04f9fdc823ead49dc
image.ASIA_PACIFIC_SE_1.EBS.x86_64.linux.HVM.Ubuntu=ami-07d01de5aebebe238
image.CA_CENTRAL_1.EBS.x86_64.windows.HVM.Windows=ami-0a55890a368f2fb68
image.US_WEST_2.EBS.x86_64.linux.HVM.Ubuntu=ami-06cb734294afa43b8
image.EU_WEST_1.EBS.x86_64.windows.HVM.Windows=ami-07f0b01b03bf29e1b
image.ASIA_PACIFIC_SE_1.EBS.x86_64.linux.PV.Ubuntu=ami-056c397105ecfb8eb
image.ASIA_PACIFIC_NE_1.EBS.x86_64.linux.HVM.Ubuntu=ami-03f2a6b757cd9b939
image.ASIA_PACIFIC_SE_2.EBS.x86_64.windows.HVM.Windows=ami-02d6b280b0c4e260a
image.AP_NE_2.EBS.x86_64.linux.HVM.Ubuntu=ami-007d28bdc6b2b8dcf
image.EU_WEST_1.EBS.x86_64.linux.HVM.Ubuntu=ami-093b0aa989ca066bc
image.US_EAST_1.EBS.x86_64.linux.PV.Amazon\ Linux=ami-023f0ce24fb18bf8f
image.EU_CENTRAL_1.EBS.x86_64.linux.HVM.Ubuntu=ami-055e7272fc013fc02
image.ASIA_PACIFIC_NE_1.EBS.x86_64.windows.HVM.Windows=ami-02cf4e13b931415c8
image.CA_CENTRAL_1.EBS.x86_64.linux.HVM.Ubuntu=ami-008dfdcaef7743d95
image.US_WEST_1.EBS.x86_64.linux.HVM.Ubuntu=ami-0aa05539ff48549ad
image.ASIA_PACIFIC_SE_1.EBS.x86_64.windows.HVM.Windows=ami-01564eb2283f136b9
image.US_EAST_2.EBS.x86_64.linux.HVM.Ubuntu=ami-00ede1dff70710545
image.EU_CENTRAL_1.EBS.x86_64.linux.PV.Ubuntu=ami-053a73d3547e266e8
image.ASIA_PACIFIC_SE_2.EBS.x86_64.linux.PV.Ubuntu=ami-0d6f81a7502c1366b
image.EU_WEST_1.EBS.x86_64.linux.PV.Ubuntu=ami-02563a74df85e9d7b
REMEMBER: Use the image from the appropriate region!

トラブルシューティング

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://packages.atlassian.com/content/groups/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 7.2.4:

    https://packages.atlassian.com/content/groups/public/com/atlassian/bamboo/atlassian-bamboo/7.2.4/atlassian-bamboo-7.2.4.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 7.2.4 (atlassian-bamboo-7.2.4.pom), the elastic image version was 6.23: 


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


     

  4. In the following URL:

    https://packages.atlassian.com/content/groups/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 6.23, which is the baseline for Bamboo 7.2.4:

    https://packages.atlassian.com/content/groups/public/com/atlassian/bamboo/atlassian-bamboo-elastic-image/6.23/atlassian-bamboo-elastic-image-6.23.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 select the image from the correct region. For example:

    image.US_EAST_1.EBS.x86_64.linux.HVM.Ubuntu=ami-02d922f88e5fbbb00

関連トピック

最終更新日 2021 年 8 月 10 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.