Only publish release AMIs

This commit is contained in:
Malte Poll 2022-11-09 11:49:04 +01:00 committed by Malte Poll
parent a96f07dbdd
commit e9fecec0bc
3 changed files with 10 additions and 0 deletions

View file

@ -87,6 +87,9 @@ tag_ami_with_backing_snapshot() {
make_ami_public() {
local ami_id=$1
local region=$2
if [ "${AWS_PUBLISH-}" != "true" ]; then
return
fi
aws ec2 modify-image-attribute \
--region "${region}" \
--image-id "${ami_id}" \