we bake an ami in one region and we copy the ami to different regions as below.
For example
1. Baking an ami in us-east-1
2. Regions to copy images for amzn-hvm: ap-northeast-1,ap-northeast-2,ap-south-1,ap-southeast-1,eu-central-1,eu-west-1,sa-east-1,us-east-2,us-west-1,us-west-2,ca-central-1,eu-west-2
packer command to copy ami to different regions
['packer build --only=copier-hvm', '-machine-readable', '-var region=us-east-1', '-var hvm_src_ami=ami-XXXXX',
'-var hvm_deeplearning_src_ami=None', '-var copy_regions=ap-northeast-1,ap-northeast-2,ap-south-1,ap-southeast-1,eu-central-1,eu-west-1,sa-east-1,us-east-2,us-west-1,us-west-2,ca-central-1,eu-west-2',
'/media/ebs1/workspace/cluster-release-ami-copy/venv/lib/python2.7/site-packages/qweez/packer/cluster/aws/release/copy_config.json']
we are seeing that
1. Baking ami in us-east-1 takes ~40 to 60 mins
2. Copy ami to diff regions as mentioned above takes ~1hr 15min to 2hr (the copy time keeps varying from 1hr to 2hr)
want to know if packer copies ami to different regions sequentially or it copies in parallel ?
Would like to know what are factors impacting which is causing the copy ami to take too long.
Want to know is there a efficient/faster way to nake and copy ami, i am basically looking to bring the overall time down.
Thanks!
Rajendra