create-amis.sh: allow uploading private AMIs
This commit is contained in:
parent
0543f2d2f6
commit
1ff82fec9a
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue