Build and publish AMI in different regions
Closes #6 (closed)
- Move the image build to
us-east-2
because mac availability is better there. We still want to publish the AMI inus-east-1
because that's where our production infrastructure is located. Use the built-in cross-region copy function of packer to do that (ami_regions
) - Because the pipeline now works in different regions, we should avoid implicit region selection by
AWS_DEFAULT_REGION
and instead explicitly state which region to use - Create a single source of truth for region values (gitlab-ci yaml + packer vars => gitlab ci yaml)
Edited by Adrien Kohlbecker