Feb 06, 2023
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}We recommend using GitHub's OIDC provider to get short-lived credentials needed for your actions. Specifying role-to-assumewithout providing an aws-access-key-id or a web-identity-token-file will signal to the action that you wish to use the OIDC provider.
- name: Configure AWS credentials & region
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::6492602451:role/github-actions
aws-region: us-west-2