From a55949f94744b9fd816de9bfbb2a3e1a6bf84062 Mon Sep 17 00:00:00 2001 From: lichaogang Date: Mon, 21 Sep 2026 15:41:42 +0900 Subject: [PATCH] fix: disable AWS credential cache for RDS IAM auth --- src/utils/aws-rds-signer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/aws-rds-signer.ts b/src/utils/aws-rds-signer.ts index 02b755d9..df2dbe76 100644 --- a/src/utils/aws-rds-signer.ts +++ b/src/utils/aws-rds-signer.ts @@ -35,7 +35,7 @@ export async function generateRdsAuthToken(params: RdsAuthTokenParams): Promise< if (params.profile) { const { fromIni } = await import("@aws-sdk/credential-providers"); - signerConfig.credentials = fromIni({ profile: params.profile }); + signerConfig.credentials = fromIni({ profile: params.profile, ignoreCache: true }); } const signer = new Signer(signerConfig);