aws-actions / configure-aws-credentials

Configure AWS credential environment variables for use in other GitHub Actions.
MIT License
2.47k stars 471 forks source link

Warning: Please migrate your code to use AWS SDK for JavaScript (v3) #1123

Closed paulz closed 2 months ago

paulz commented 3 months ago

Describe the bug

when running

      - name: Setup AWS credentials
        uses: aws-actions/configure-aws-credentials@master
        with:
          role-to-assume: ${{ secrets.AWS_EPA_INSIGHTS_ROLE }}
          aws-region: us-east-1

The output shows the warning:

Run aws-actions/configure-aws-credentials@master
  with:
    role-to-assume: ***
    aws-region: us-east-1
    audience: sts.amazonaws.com
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.1[2](https://github.com/rxrevu/epa-insights/actions/runs/10105477755/job/27946024479#step:7:2).4/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/[3](https://github.com/rxrevu/epa-insights/actions/runs/10105477755/job/27946024479#step:7:3).12.4/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.[4](https://github.com/rxrevu/epa-insights/actions/runs/10105477755/job/27946024479#step:7:4)/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.4/x[6](https://github.com/rxrevu/epa-insights/actions/runs/10105477755/job/27946024479#step:7:6)4
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.4/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.4/x64/lib
(node:1616) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the migration guide at https://a.co/[7](https://github.com/rxrevu/epa-insights/actions/runs/10105477755/job/27946024479#step:7:7)PzMCcy
(Use `node --trace-warnings ...` to show where the warning was created)

Expected Behavior

no warning

Current Behavior

Please migrate your code to use AWS SDK for JavaScript (v3). For more information, check the migration guide at https://a.co/7PzMCcy (Use node --trace-warnings ... to show where the warning was created)

Reproduction Steps

      - name: Setup AWS credentials
        uses: aws-actions/configure-aws-credentials@master

Possible Solution

upgrade AWS to Javascript v3

Additional Information/Context

No response

nicks commented 2 months ago

i think master no longer points to the latest version of this repo, you have to use main

2357gi commented 2 months ago

Or use the commit hash of the latest release.

e.g.

      - name: Configure AWS Credentials
        uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
paulz commented 2 months ago

thank you, using main branch fixed the warning for us

github-actions[bot] commented 2 months ago

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one.