Skip to content

Commit

Permalink
Pull the role from Secrets, not vars
Browse files Browse the repository at this point in the history
gh-7

My last build failed with:

Error: Credentials could not be loaded, please check your action inputs:
Could not load credentials from any providers

But an example here:

https://github.com/aws-actions/configure-aws-credentials#assumerole-with-static-iam-credentials-in-repository-secrets

has the role-to-assume pulled from a Secret.
  • Loading branch information
douglasnaphas committed Aug 10, 2023
1 parent c3b594c commit 8e62cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ vars.TEST_ROLE }}
role-to-assume: ${{ secrets.TEST_ACCOUNT_ROLE }}
aws-region: us-west-2
- name: Deploy the app stack to the test account
working-directory: infra
Expand Down

0 comments on commit 8e62cfd

Please sign in to comment.