Warning: Please migrate your code to use AWS SDK for JavaScript (v3)
Closed this issue · 4 comments
paulz commented
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
(Usenode --trace-warnings ...
to show where the warning was created)
Reproduction Steps
- name: Setup AWS credentials
uses: aws-actions/configure-aws-credentials@master
Possible Solution
Additional Information/Context
No response
nicks commented
i think master
no longer points to the latest version of this repo, you have to use main
2357gi commented
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
thank you, using main
branch fixed the warning for us
github-actions commented
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.