Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

croco-dev/aws-profile-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

Configure AWS Credential Profiles for GitHub Actions

This action uses the official aws-actions/configure-aws-credentials@v2 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/configure-aws-profile-action@v0.1.1
 with:
 role-arn: arn:aws:iam::<ACCOUNT_ID>:role/<ROLE_NAME>
 profile-name: test
 - uses: mcblair/configure-aws-profile-action@v0.1.1
 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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /