Skip to content

Commit

Permalink
Removing vagrant processing from build script
Browse files Browse the repository at this point in the history
  • Loading branch information
villadalmine committed Nov 15, 2016
1 parent bfb0a73 commit b5adec8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/perms.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

aws_acct_id="823003027569"
aws_acct_id_plus="886593122405"
bucket="internet2-tier-appliance-us-west-1"

ova_key=$(aws s3api list-objects --bucket $bucket --query 'reverse(sort_by(Contents[?contains(Key, `ova`)], &LastModified))[0].[Key]' --output text | tr -d '\n' )
Expand All @@ -16,4 +17,5 @@ ami_id=$(aws ec2 describe-images --owners $aws_acct_id --query 'reverse(sort_by(
echo "Publishing $ami_id to $aws_acct_id"

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\"}]}"

0 comments on commit b5adec8

Please sign in to comment.