Skip to content

Commit

Permalink
Make OIDC optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ntse committed Aug 6, 2024
1 parent c1325d6 commit bf0b1a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/terraform-plan-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf0b1a7

Please sign in to comment.