From 27c62eaea54289e2b7d534edff02d7d4408ebf92 Mon Sep 17 00:00:00 2001 From: villadalmine Date: Tue, 15 Nov 2016 21:02:36 +0100 Subject: [PATCH] Update perms.sh --- bin/perms.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/perms.sh b/bin/perms.sh index ac013d7..013b4da 100755 --- a/bin/perms.sh +++ b/bin/perms.sh @@ -14,7 +14,7 @@ echo "(https://s3-us-west-1.amazonaws.com/$bucket/$ova_key)" echo $(md5sum builds/$ova_key) ami_id=$(aws ec2 describe-images --owners $aws_acct_id --query 'reverse(sort_by(Images[?starts_with(Name, `import-ami`)], &CreationDate))[0].[ImageId]' --output text | tr -d '\n' ) -echo "Publishing $ami_id to $aws_acct_id" +echo "Publishing $ami_id to all accounts" aws ec2 modify-image-attribute --image-id $ami_id --launch-permission "{\"Add\":[{\"UserId\":\"$aws_acct_id\"}]}" aws ec2 modify-image-attribute --image-id $ami_id --launch-permission "{\"Add\":[{\"UserId\":\"$aws_acct_id_plus\"}]}"