From 96dd7281b2f298497f8af7c333955c1b957ce62a Mon Sep 17 00:00:00 2001 From: Stefan Hattrell <29941279+digorgonzola@users.noreply.github.com> Date: Tue, 5 Dec 2023 19:48:21 +1100 Subject: [PATCH] test.yml: aws authentication --- .github/workflows/test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab3b72a..eba85d2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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/terragrunt-action@v2.0.0 @@ -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 }}