Skip to content

Commit

Permalink
Merge pull request #192 from bobisjan/credentials-session-token
Browse files Browse the repository at this point in the history
Provide session token to credentials
  • Loading branch information
lukemelia authored Jan 31, 2025
2 parents 4472896 + 9c07bf9 commit 7774d21
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@ module.exports = CoreObject.extend({
accessKeyId: accessKeyId,
secretAccessKey: secretAccessKey,
};

if (sessionToken) {
this.plugin.log('Using AWS session token from config', { verbose: true });
s3Options.credentials.sessionToken = sessionToken;
}
}

if (signatureVersion) {
this.plugin.log('Using signature version from config', { verbose: true });
s3Options.signatureVersion = signatureVersion;
}

if (sessionToken) {
this.plugin.log('Using AWS session token from config', { verbose: true });
s3Options.sessionToken = sessionToken;
}

if (profile && !this.plugin.readConfig('s3Client')) {
this.plugin.log('Using AWS profile from config', { verbose: true });
s3Options.credentials = fromIni({ profile: profile });
Expand Down

0 comments on commit 7774d21

Please sign in to comment.