diff options
author | Timothy DeHerrera <tim.deh@pm.me> | 2021-09-17 13:56:22 -0600 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-10-03 19:03:28 -0700 |
commit | 1ff82fec9a0f48ce29b73113b24d43b83e023813 (patch) | |
tree | 4e3df28661318798edb567c85ac26616c86f7547 /nixos/maintainers | |
parent | 0543f2d2f62dcc3d5e917f34d3c0526d0548473f (diff) |
create-amis.sh: allow uploading private AMIs
Diffstat (limited to 'nixos/maintainers')
-rwxr-xr-x | nixos/maintainers/scripts/ec2/create-amis.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/maintainers/scripts/ec2/create-amis.sh b/nixos/maintainers/scripts/ec2/create-amis.sh index 560b761508e8..bfc1cd72694a 100755 --- a/nixos/maintainers/scripts/ec2/create-amis.sh +++ b/nixos/maintainers/scripts/ec2/create-amis.sh @@ -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" } |