Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS SSO Support with aws-actions/configure-aws-credentials #2286

Open
kotowick opened this issue Apr 10, 2024 · 2 comments
Open

AWS SSO Support with aws-actions/configure-aws-credentials #2286

kotowick opened this issue Apr 10, 2024 · 2 comments
Labels
kind/feature-request New feature or request

Comments

@kotowick
Copy link

Act version

act version 0.2.55

Feature description

Does ACT support aws-actions/configure-aws-credentials@v4 from a local machine using AWS SSO?

I tried with role-chaining too.

The below config works in Github Actions, just not locally.

permissions:
id-token: write
contents: read

  • name: (Local) - Configure AWS Credentials
    id: aws-creds
    uses: aws-actions/configure-aws-credentials@v4
    with:
    role-to-assume: some_role
    role-session-name: some_session
    aws-region: some_region
@kotowick kotowick added the kind/feature-request New feature or request label Apr 10, 2024
@fjcero
Copy link

fjcero commented Apr 14, 2024

+1!

@fiskhest
Copy link

fiskhest commented Apr 22, 2024

I am no longer an AWS user so I cannot confirm. However, reading the docs for that action, If no access key credentials are given in the action inputs, this action will use credentials from the runner environment using the default methods for the AWS SDK for Javascript. which leads to https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html that says fromIni() is supported. So having configured aws-cli, something like act --container-options "-v /home/<user>/.aws:/home/runner/.aws" might just work. YMMV.

Edit: also found this, maybe it helps. #409 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants