Skip to content

How to configure AWS credentials/login? #291

Answered by dflook
PeterBocan asked this question in Q&A
Discussion options

You must be logged in to vote

You would typically set the AWS_ environment variables to pass the credentials.

You can use an access key that you have stored in a secret like this:

env:
    AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
    AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

You can set the env globally at the top level, or for a single task.

These credentials could come from anywhere - I wrote https://github.com/dflook/configure-oidc-aws-credentials for using OpenID Connect.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by PeterBocan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants