I was wondering if anyone has been able to use packers parallel build scenario to produce AWS AMI's for different regions. I have a system where I am running a build (in AWS jenkins) and then calling Packer. I want to produce AMI's for 3 regions (us-east, us-west, apac) from that same build. We are using a combo of Ansible/EtcD for provisioning and configuration but when I try to specify multiple regions in the 'builders section, something like this (stealing the example from the packer docs website)
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "us-east-1",
"source_ami": "ami-72b9e018",
"instance_type": "t2.micro",
"ssh_username": "ubuntu",
"ami_name": "packer-example {{timestamp}}"
},{
"type": "amazon-ebs"
"access_key": "{{user `aws_access_key2`}}",
"secret_key": "{{user `aws_secret_key2`}}",
"region": "us-west-1",
"source_ami": "ami-88aebe564",
"instance_type": "t2.micro",
"ssh_username": "ubuntu"
"ami_name": "packer-example2 {{timestamp}}"
}]
etc....it fails ...