Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

Support OIDC credentials #57

Open
jankatins opened this issue Nov 7, 2022 · 1 comment
Open

Support OIDC credentials #57

jankatins opened this issue Nov 7, 2022 · 1 comment

Comments

@jankatins
Copy link

You can use a github provided token to authenticate against AWS if you setup OIDC on the AWS side.

It would be nice if this workflow could be supported in this cdk action.

@Oatelaus
Copy link

Oatelaus commented Feb 4, 2023

This is possible currently

configure-aws-credentials exposes the correct credentials within its action so you can simply call this package without credentials.

For example:

      - name: Configure AWS credentials
        uses: aws-actions/configure-aws-credentials@v1
        with:
          role-to-assume: ${{ secrets.AWS_ROLE_ARN_TO_ASSUME }}
      - name: Diff
        uses: youyo/aws-cdk-github-actions@v2
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          cdk_subcommand: "diff"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants