Skip to content
Open
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,8 @@ export const getProfiledAwsConfig = async (
// need to force AWS_SDK_LOAD_CONFIG to a truthy value to force ProcessCredentials to prefer the credential process in ~/.aws/config instead of ~/.aws/credentials
const sdkLoadConfigOriginal = process.env.AWS_SDK_LOAD_CONFIG;
process.env.AWS_SDK_LOAD_CONFIG = '1';
const chain = new CredentialProviderChain();
const processProvider = () => new ProcessCredentials({ profile: profileName });
chain.providers.push(processProvider);
const chain = new CredentialProviderChain([processProvider]);

const credentials = await chain.resolvePromise();
awsConfigInfo = {
Expand Down