Skip to content

Commit eea7af7

Browse files
authored
fix(credential-provider-imds): credential expiration extension log message (#1175)
1 parent 64cd9c8 commit eea7af7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/tough-bikes-sit.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@smithy/credential-provider-imds": patch
3+
---
4+
5+
fix: credential expiration extension log message

packages/credential-provider-imds/src/utils/getExtendedInstanceMetadataCredentials.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const getExtendedInstanceMetadataCredentials = (
1919
const newExpiration = new Date(Date.now() + refreshInterval * 1000);
2020
logger.warn(
2121
"Attempting credential expiration extension due to a credential service availability issue. A refresh of these " +
22-
"credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: " +
22+
`credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: ` +
2323
STATIC_STABILITY_DOC_URL
2424
);
2525
const originalExpiration = credentials.originalExpiration ?? credentials.expiration;

0 commit comments

Comments
 (0)