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

Calling aws.TemporaryCredentials constructor with a single param is broken in 2.382.0 #2468

Closed
anton-107 opened this issue Jan 2, 2019 · 3 comments
Labels
duplicate This issue is a duplicate.

Comments

@anton-107
Copy link

anton-107 commented Jan 2, 2019

This code used to work prior to version 2.382.0

const credentials = new aws.TemporaryCredentials({RoleArn: roleArn});
// and then temporary credentials are passed to a constructor or a AWS service

In 2.382.0 the first line throws an error:

TypeError: Cannot read property 'masterCredentials' of null
at TemporaryCredentials.loadMasterCredentials (/var/task/node_modules/aws-sdk/lib/credentials/temporary_credentials.js:113:35)
at new TemporaryCredentials (/var/task/node_modules/aws-sdk/lib/credentials/temporary_credentials.js:62:10)
...
@jstewmon
Copy link
Contributor

jstewmon commented Jan 2, 2019

This was caused by #2451 and is resolved by #2456.

@srchase
Copy link
Contributor

srchase commented Jan 2, 2019

@anton-107

@jstewmon is correct. For now, you can rollback to 2.381.0. The fix in #2456 will be included with the next release of the SDK.

@srchase srchase closed this as completed Jan 2, 2019
@srchase srchase added the duplicate This issue is a duplicate. label Jan 2, 2019
@lock
Copy link

lock bot commented Sep 26, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue is a duplicate.
Projects
None yet
Development

No branches or pull requests

3 participants