Copy the new image to oregon and singapore for now

This commit is contained in:
Johannes Zellner
2016-06-09 16:49:01 +02:00
parent 255d4ea088
commit abb3d5f0ef

View File

@@ -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 "--------------------------------------------------"