mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-20 05:51:46 -04:00
Only publish release AMIs
This commit is contained in:
parent
a96f07dbdd
commit
e9fecec0bc
3 changed files with 10 additions and 0 deletions
|
@ -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}" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue