Skip to content

Commit

Permalink
Merge pull request #188 from unboxed/use-correct-role-for-assumerole
Browse files Browse the repository at this point in the history
Use correct role with AssumeRoleWithWebIdentity
  • Loading branch information
pixeltrix authored Dec 18, 2023
2 parents b5f7183 + d6bdb5f commit 4aa67b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/bops_github_deploy_${{ inputs.environment-name }}
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/bops-applicants_github_deploy_${{ inputs.environment-name }}
aws-region: eu-west-2

- name: Login to Amazon ECR
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/bops_github_deploy_${{ inputs.environment-name }}
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/bops-applicants_github_deploy_${{ inputs.environment-name }}
aws-region: eu-west-2

- name: Login to Amazon ECR
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/bops_github_deploy_${{ inputs.environment-name }}
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/bops-applicants_github_deploy_${{ inputs.environment-name }}
aws-region: eu-west-2

- name: Login to Amazon ECR
Expand Down

0 comments on commit 4aa67b0

Please sign in to comment.