Copy the new image to oregon and singapore for now
This commit is contained in:
@@ -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 "--------------------------------------------------"
|
||||
|
||||
Reference in New Issue
Block a user