We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6383fef commit 4fff20aCopy full SHA for 4fff20a
packages/credential-provider-imds/src/remoteProvider/ImdsCredentials.ts
@@ -30,5 +30,5 @@ export const fromImdsCredentials = (creds: ImdsCredentials): AwsCredentialIdenti
30
secretAccessKey: creds.SecretAccessKey,
31
sessionToken: creds.Token,
32
expiration: new Date(creds.Expiration),
33
- accountId: creds.AccountId,
+ ...(creds.AccountId && { accountId: creds.AccountId }),
34
});
0 commit comments