org-formation / org-formation-cli

Better than landingzones!
MIT License
1.4k stars 129 forks source link

Upgrade to AWS SDK for for JavaScript (v3) #510

Open cgspohn opened 1 year ago

cgspohn commented 1 year ago

Subject of the issue

When running npx org-formation perform-tasks org.yml for example, the following warning displays in the terminal:

(node:89293) 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/7PzMCcy
(Use `node --trace-warnings ...` to show where the warning was created)

Your environment

Steps to reproduce

After installing the tool:

npx org-formation perform-tasks org.yml

Expected behaviour

No more warning and upgraded to AWS SDK for JavaScript (v3) before it is no longer supported.

Actual behaviour

Warning shows up, although I can say that all works for me as expected. I have not run into any errors or anything not working as expected. Raising the ticket proactively since I know upgrades can take some time.

balassy commented 1 year ago

I'm trying to use org-formation with a custom Identity Center user, and init fails with authentication errors. It looks like it needs my ~\.aws\credentials file that I don't have, and my understanding is that with Identity Center authentication there is no credentials file. Can it happen that this tool cannot work with Identity Center credentials until the AWS SDK is not upgraded to v3, so I must to set up short-term credentials (access key id, secret access key, session token)?