Skip to content

Commit

Permalink
Merge pull request awslabs#5 from celonis/acc_ids
Browse files Browse the repository at this point in the history
Adding new platform account to ami sync
  • Loading branch information
kwoodson committed Mar 28, 2024
2 parents a23cd94 + 44937db commit c3f9494
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build-manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ on:
options:
- "build"
- "test"
#build_arguments:
#required: false
#type: string

env:
ACCOUNT_IDS: 077065747391,090635543738
jobs:
setup:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -119,4 +119,8 @@ jobs:
aws_region: ${{ inputs.AWS_REGION }}
- name: "${{ steps.build.outputs.ami_id }} Sharing"
id: ami-sharing
run: aws ec2 modify-image-attribute --image-id ${{ steps.build.outputs.ami_id }} --launch-permission "Add=[{UserId=077065747391}]"
run: |
for acc_id in ${ACCOUNT_IDS//,/ } ;
do
aws ec2 modify-image-attribute --image-id ${{ steps.build.outputs.ami_id }} --launch-permission "Add=[{UserId=${acc_id}}]"
done

0 comments on commit c3f9494

Please sign in to comment.