Skip to content
Permalink
Browse files

Merge branch 'comanage-production'

  • Loading branch information
Mason Packard
Mason Packard committed Sep 13, 2016
2 parents baf73d5 + f9838e0 commit dc9603d19be5a7a6e8686c2ad646309e35864811
Showing with 3 additions and 0 deletions.
  1. +3 −0 bin/perms.sh
@@ -22,5 +22,8 @@ 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"

ami_image_description=$(aws ec2 describe-images --image-ids $ami_id --query 'Images[0].{Description:Tags[0].Value}')
echo $ami_image_description

aws ec2 modify-image-attribute --image-id $ami_id --launch-permission "{\"Add\":[{\"UserId\":\"$aws_acct_id\"}]}"

0 comments on commit dc9603d

Please sign in to comment.
You can’t perform that action at this time.