Skip to content

Commit

Permalink
fix assume
Browse files Browse the repository at this point in the history
  • Loading branch information
oluwolenpbc authored Jan 13, 2025
1 parent 72576b5 commit 6e657f1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/verify-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ jobs:
uses: actions/checkout@v4

- name: Assume role in AB2D account for this environment
uses: aws-actions/configure-aws-credentials@v3
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
env:
ACCOUNT: ${{ inputs.environment == '' && 'test' || inputs.environment }}
with:
aws-region: ${{ vars.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ secrets[format('{0}_ACCOUNT_ID', inputs.environment)] }}:role/delegatedadmin/developer/ab2d-${{ inputs.environment }}-github-actions

role-to-assume: arn:aws:iam::${{ secrets[format('{0}_ACCOUNT_ID', env.ACCOUNT)] }}:role/delegatedadmin/developer/ab2d-${{ env.ACCOUNT }}-github-actions
- name: Set environment-specific variables
run: |
ENVIRONMENT="${{ inputs.environment || 'test' }}"
Expand Down

0 comments on commit 6e657f1

Please sign in to comment.