From bf0b1a74861606321c314f257a63f0fdaa67dbda Mon Sep 17 00:00:00 2001 From: Sam Ainsworth Date: Tue, 6 Aug 2024 16:18:45 +0100 Subject: [PATCH] Make OIDC optional --- .github/workflows/terraform-plan-apply.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/terraform-plan-apply.yml b/.github/workflows/terraform-plan-apply.yml index c177db9..817c39b 100644 --- a/.github/workflows/terraform-plan-apply.yml +++ b/.github/workflows/terraform-plan-apply.yml @@ -88,12 +88,16 @@ jobs: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4 env: - AWS_ROLE_NAME: "${{ secrets.AWS_ROLE_NAME }}" + AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}" + AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" AWS_ACCOUNT_ID: "${{ secrets.AWS_ACCOUNT_ID }}" + AWS_ROLE_NAME: "${{ secrets.AWS_ROLE_NAME }}" if: ${{ env.AWS_ROLE_NAME != '' && env.AWS_ACCOUNT_ID != '' }} with: aws-region: "${{ inputs.aws_region }}" role-to-assume: "arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/${{ env.AWS_ROLE_NAME }}" + aws-access-key-id: "${{ env.AWS_ACCESS_KEY_ID }}" + aws-secret-access-key: "${{ env.AWS_SECRET_ACCESS_KEY }}" - name: Configure Azure Credentials uses: azure/login@v2