Skip to content

Commit

Permalink
fix(cli): wrongly assume aws config file always exists (#6196)
Browse files Browse the repository at this point in the history
  • Loading branch information
duarten authored Feb 11, 2020
1 parent 07f8319 commit 23f8b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/api/util/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ async function makeCLICompatibleCredentialProvider(profile: string | undefined,
() => new AWS.EnvironmentCredentials('AWS'),
() => new AWS.EnvironmentCredentials('AMAZON'),
];
if (fs.pathExists(filename)) {
if (await fs.pathExists(filename)) {
sources.push(() => new AWS.SharedIniFileCredentials({ profile, filename }));
}

Expand Down

0 comments on commit 23f8b9f

Please sign in to comment.