Skip to content

st-vasyl/assume-aws-role-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Assume AWS Role for GitHub Actions

This action allows to assume AWS role in other account. The official action is not sufficient for assuming AWS role account in different accounts without access and secret keys.

The primary reason this action exists is to use it in self-hosted GitHub runners in Kubernetes with already attached IAM role through service account and assume AWS role in other account.

Usage

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

    - uses: st-vasyl/assume-aws-role-action@v1
      with:
        role-arn: arn:aws:iam::<ACCOUNT_ID>:role/<ROLE_NAME>

    - run: aws s3 ls

About

Assume AWS role in other account without access keys

Resources

Stars

Watchers

Forks

Packages

No packages published