-
Notifications
You must be signed in to change notification settings - Fork 1.5k
AWS.SharedIniFileCredentials loadRoleProfile using non existent options #2197
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
Comments
aws#2197 updated the constructor to save this.options updated the constructor to honor process.env.AWS_SHARED_CREDENTIALS_FILE
@dpmallinger This is absolutely something we are changing when we do a major version bump, but couldn't be done at the time we added it without potentially breaking users. |
@chrisradek if I don't have any env vars set and I call |
+1 to this, We are also unable to use credentials across assumeRole calls with a non-standard credential file due to the
|
Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue. |
this code:
var sourceCredentials = new AWS.SharedIniFileCredentials(
AWS.util.merge(this.options || {}, {
profile: sourceProfileName,
preferStaticCredentials: true
})
);
is broken because this.options is null because its not saved in the constructor. This causes filename to be null and thus the code defaults to ~/.aws/credentials instead of process.env.AWS_SHARED_CREDENTIALS_FILE ( or whatever was passed into the original constructor call)
In addition; the constructor filename does not default per the documentation.
this.filename = options.filename
should be
this.filename = options.filename || process.env.AWS_SHARED_CREDENTIALS_FILE
to match this documentation:
The text was updated successfully, but these errors were encountered: