create-amis.sh: allow uploading private AMIs

This commit is contained in:
Timothy DeHerrera 2021-09-17 13:56:22 -06:00 committed by Jonathan Ringer
parent 0543f2d2f6
commit 1ff82fec9a

View file

@ -252,7 +252,7 @@ upload_image() {
write_state "$state_key" ami_id "$ami_id"
fi
make_image_public "$region" "$ami_id"
[[ -v PRIVATE ]] || make_image_public "$region" "$ami_id"
echo "$ami_id"
}
@ -280,7 +280,7 @@ copy_to_region() {
write_state "$state_key" ami_id "$ami_id"
fi
make_image_public "$region" "$ami_id"
[[ -v PRIVATE ]] || make_image_public "$region" "$ami_id"
echo "$ami_id"
}