Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/lib/aws-sdk/credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ export async function setAWSCredentials(profile?: string, region?: string): Prom
sources.push(() => new AWS.SharedIniFileCredentials({ filename: credentialsFileName(), profile, tokenCodeFn }));
}

if (await canRead(configFileName())) {
sources.push(() => new AWS.SsoCredentials({ filename: configFileName(), profile }));
}

const credentials = await new AWS.CredentialProviderChain(sources).resolvePromise();
AWS.config.update({ credentials });
} catch (err) {
Expand Down