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

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

Closed
paulz opened this issue Jul 26, 2024 · 4 comments
Closed

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

paulz opened this issue Jul 26, 2024 · 4 comments
Labels
bug Something isn't working needs-triage This issue still needs to be triaged

Comments

@paulz
Copy link

paulz commented Jul 26, 2024

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

@paulz paulz added bug Something isn't working needs-triage This issue still needs to be triaged labels Jul 26, 2024
@nicks
Copy link

nicks commented Aug 14, 2024

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

@2357gi
Copy link

2357gi commented Aug 28, 2024

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
Copy link
Author

paulz commented Aug 28, 2024

thank you, using main branch fixed the warning for us

@paulz paulz closed this as completed Aug 28, 2024
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage This issue still needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants