Skip to content

Commit c253f21

Browse files
committed
undo sleep for creds validate
1 parent 92f8d70 commit c253f21

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

dist/index.js

Lines changed: 5 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,11 @@ export async function run() {
239239
//we then validate the credentials to make sure they work.
240240
if (AccessKeyId) {
241241
writeProfileFiles(awsProfile, roleCredentials.Credentials || {}, region, true);
242-
setTimeout(() => {
243-
credentialsClient.validateCredentials(
244-
roleCredentials.Credentials?.AccessKeyId,
245-
roleChaining,
246-
expectedAccountIds,
247-
);
248-
}, 10000); //sleep to allow write to propagate?
242+
await credentialsClient.validateCredentials(
243+
roleCredentials.Credentials?.AccessKeyId,
244+
roleChaining,
245+
expectedAccountIds,
246+
);
249247
} else {
250248
writeProfileFiles(awsProfile, roleCredentials.Credentials || {}, region, overwriteAwsProfile);
251249
}

0 commit comments

Comments
 (0)