aws / aws-toolkit-jetbrains

AWS Toolkit for JetBrains - a plugin for interacting with AWS from JetBrains IDEs
https://plugins.jetbrains.com/plugin/11349-aws-toolkit
Apache License 2.0
730 stars 197 forks source link

NodeJS App can no longer find credentials using AWS Identity SSO #4587

Open modstorm opened 2 weeks ago

modstorm commented 2 weeks ago

Description Over the last week something has changed while running my Node app in the IDE. The app which uses AWS SDK v3 can no longer find credentials when using AWS Identity SSO IAM, giving this error: CredentialsProviderError: Could not load credentials from any providers.

Note the AWS Toolkit Explorer DOES correctly show all available cloud resources.

To reproduce

1) Using the AWS Toolkit, sign-in using the Workforce option with the desired account/region 2) Follow the link to the browser to authenticate 2) Note in the Toolkit explore all AWS resources appear correctly and are accessible 3) Using the JetBrains IDE, Run a NodeJS app that uses AWS SDK v3 to access cloud resources 4) See this error: CredentialsProviderError: Could not load credentials from any providers

Expected behavior Prior to installing the latest Plugin the NodeJS app was able to correctly load the credentials and interact with the cloud resources. I have an older build on a different machine that is still working correctly.

Screenshots In the previous working plugin, this message appeared after authenticating through the browser:

image

With the latest plugin, this message now appears:

SCR-20240613-ps3

Your Environment

Let me know if I can provide additional information to solve this. Thanks!