Skip to content

Configure AWS Profile

Actions
Configures an OIDC AWS Role Session as an aws config profile
v1.0.0
Latest
Star (28)

Configure AWS Credential Profiles for GitHub Actions

This action uses the official aws-actions/configure-aws-credentials@v4 action. This action only supports assuming roles via OIDC.

The official action is not sufficient for multiple account usage as it can only set one set of AWS environment variables at a time.

The primary reason this action exists is to address using multiple profiles at the same time. Region defaults to us-west-2.

Usage

jobs:
  test_new_action:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout Repo
      uses: actions/checkout@v3

    - uses: mcblair/[email protected]
      with:
        role-arn: arn:aws:iam::<ACCOUNT_ID>:role/<ROLE_NAME>
        profile-name: test

    - uses: mcblair/[email protected]
      with:
        role-arn: arn:aws:iam::<ACCOUNT_ID>:role/<ROLE_NAME>
        profile-name: production
        region: us-east-2

    - run: aws s3 ls --profile test

    - run: aws s3 ls --profile production

Configure AWS Profile is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Configures an OIDC AWS Role Session as an aws config profile
v1.0.0
Latest

Configure AWS Profile is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.