If you customised your instance according to Creating a Custom Elastic Image, your instance will keep itself updated across Bamboo The synchronisation process takes a while and it will increase the older your image gets. If you notice slow startup, you may want to refresh your image. You can either customise the instance from scratch like when you created your customised image or update just the agent data, which is much faster.
エージェント データを更新する方法は以下のとおりです。
Create an Image of your Customised Instance
You can create an image of your customised instance by using the ec2-bundle-vol command, as follows:
/usr/local/bin/ec2-bundle-vol -c $EC2_CERT -k $EC2_PRIVATE_KEY -u <amazon_account_number> -p <elastic_image_name> --batch --debug
ここで、<elastic_image_name> は、カスタム イメージに割り当てる名前です (「CustomImage1」など)。
イメージが作成されたら、次のコマンドを実行して Amazon S3 にアップロードする必要があります。
/usr/local/bin/ec2-upload-bundle -b <s3_bucket_name> -m /tmp/<elastic_image_name>.manifest.xml -a <access_key_id> -s <secret_access_key> --retry --debug
where <s3_bucket_name>, <access_key_id> and <secret_access_key> are the Amazon S3 bucket name, Access Key ID and Secret Access Key described previously, and <elastic_image_name> is the name that you want to assign to your custom image (e.g. 'CustomImage1')
You will then need to register your image with Amazon EC2 by using the ec2-register command:
$EC2_HOME/bin/ec2-register <s3_bucket_name>/<elastic_image_name>.manifest.xml
where <s3_bucket_name> is the Amazon S3 bucket name described previously and <elastic_image_name> is the name that you want to assign to your custom image (e.g. 'CustomImage1')
The output of this command will show the AMI ID of your custom image.
5. Associate the new Custom Image with Bamboo
Finally, you will need to associate your custom elastic image with your Bamboo installation by creating an Elastic Image Configuration. Please note the AMI ID of your new custom image and read Managing your Elastic Image Configurations for further instructions.
1 Comment
Josh Skinner
Nov 30, 2011Is there a new assembly for version 3.3.2? Latest one I see is for 3.2.2.