Skip to content

Commit

Permalink
test.yml: aws authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Dec 5, 2023
1 parent b699b59 commit 96dd728
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Expose environment
run: echo '${{ toJSON(github) }}'
- name: Configure AWS Credentials
if: ${{ !env.ACT }}
uses: aws-actions/configure-aws-credentials@v4
with:
audience: sts.amazonaws.com
aws-region: ${{ vars.$AWS_REGION }}
role-to-assume: ${{ vars.AWS_ROLE_NAME }}

- name: Gruntwork Terragrunt
uses: gruntwork-io/[email protected]
Expand All @@ -102,5 +107,6 @@ jobs:
env:
AWS_ACCOUNT_ID: ${{ vars.AWS_ACCOUNT_ID }}
AWS_REGION: ${{ vars.AWS_REGION }}
AWS_ROLE_NAME: ${{ vars.AWS_ROLE_NAME }}
ECR_REGISTRY: ${{ vars.ECR_REGISTRY }}
PARAMETER_NAME: ${{ vars.PARAMETER_NAME }}

0 comments on commit 96dd728

Please sign in to comment.