How to configure AWS credentials/login? #291
-
Hello Community, I don't see any documentation around the AWS credentials and/or logging into AWS using a predefined AWS account. Do I need to provide a separate step to login into AWS? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You would typically set the 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 These credentials could come from anywhere - I wrote https://github.com/dflook/configure-oidc-aws-credentials for using OpenID Connect. |
Beta Was this translation helpful? Give feedback.
-
@dflook I am using https://github.com/mcblair/configure-aws-profile-action to create named aws profiles in ~/.aws from OIDC but they are not available when running dflook/terraform-plan@v1. How can I make them available? |
Beta Was this translation helpful? Give feedback.
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:
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.