1
0
Fork 0
mirror of synced 2026-06-05 19:18:19 +00:00
Pull-mirror of github.com/aws-actions/configure-aws-credentials
Find a file
2020-01-06 20:38:44 +00:00
.dependabot Add dependabot config 2019-11-01 21:09:42 -07:00
.github chore: Automated packaging commit uses a conventional commit message 2020-01-01 15:17:20 -08:00
dist chore: Update dist 2020-01-06 20:38:44 +00:00
.eslintrc.json Add initial implementation 2019-11-01 10:32:13 -07:00
.gitignore Always ignore node_modules 2019-11-01 10:32:13 -07:00
action.yml Add branding 2019-11-07 21:36:30 -08:00
CODE_OF_CONDUCT.md Creating initial file from template 2019-10-30 15:33:01 -07:00
CONTRIBUTING.md Update URLs, upgrade deps 2019-11-07 21:15:05 -08:00
index.js Add custom user agent 2019-11-03 18:41:05 -08:00
index.test.js Add support for masking the AWS account ID from logs 2019-11-01 20:49:03 -07:00
LICENSE Creating initial file from template 2019-10-30 15:32:59 -07:00
package-lock.json chore: Bump aws-sdk from 2.597.0 to 2.598.0 2020-01-06 12:37:55 -08:00
package.json chore: Bump aws-sdk from 2.597.0 to 2.598.0 2020-01-06 12:37:55 -08:00
README.md fixes link to GitHub Actions secrets 2019-12-27 16:53:09 -08:00
THIRD-PARTY Add third-party attributions 2019-11-01 22:09:26 -07:00

"Configure AWS Credentials" Action For GitHub Actions

Configure AWS credential and region environment variables for use in other GitHub Actions. The environment variables will be detected by both the AWS SDKs and the AWS CLI to determine the credentials and region to use for AWS API calls.

Usage

Add the following step to your workflow:

    - name: Configure AWS Credentials
      uses: aws-actions/configure-aws-credentials@v1
      with:
        aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
        aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
        aws-region: us-east-2

See action.yml for the full documentation for this action's inputs and outputs.

Credentials

We recommend following Amazon IAM best practices for the AWS credentials used in GitHub Actions workflows, including:

  • Do not store credentials in your repository's code. You may use GitHub Actions secrets to store credentials and redact credentials from GitHub Actions workflow logs.
  • Create an individual IAM user with an access key for use in GitHub Actions workflows, preferably one per repository. Do not use the AWS account root user access key.
  • Grant least privilege to the credentials used in GitHub Actions workflows. Grant only the permissions required to perform the actions in your GitHub Actions workflows.
  • Rotate the credentials used in GitHub Actions workflows regularly.
  • Monitor the activity of the credentials used in GitHub Actions workflows.

License Summary

This code is made available under the MIT license.