From abb3d5f0ef3df4e92e9d760f1156027f54587cb6 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 9 Jun 2016 16:49:01 +0200 Subject: [PATCH] Copy the new image to oregon and singapore for now --- baseimage/createEC2Image | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/baseimage/createEC2Image b/baseimage/createEC2Image index d31e3873e..72670ea78 100755 --- a/baseimage/createEC2Image +++ b/baseimage/createEC2Image @@ -124,6 +124,10 @@ done echo "Terminating instance" aws ec2 terminate-instances --region ${region} --profile ${aws_credentials} --instance-ids ${instance_id} +echo "Copy image to other regions" +aws ec2 copy-image --region us-west-2 --profile ${aws_credentials} --source-image-id ${image_id} --source-region ${region} --name ${snapshot_name} +aws ec2 copy-image --region ap-southeast-1 --profile ${aws_credentials} --source-image-id ${image_id} --source-region ${region} --name ${snapshot_name} + echo "Done." echo "" echo "--------------------------------------------------"