diff --git a/packages/core/src/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts b/packages/core/src/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts index 8962aba48421..62e6f7975c08 100644 --- a/packages/core/src/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts +++ b/packages/core/src/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts @@ -129,7 +129,7 @@ export const resolveAwsSdkSigV4Config = ( } } - const boundCredentialsProvider = async () => credentialsProvider!({ callerClientConfig: config }); + const boundCredentialsProvider = async (options: Record | undefined) => credentialsProvider!({ ...options, callerClientConfig: config }); // Populate sigv4 arguments const { @@ -225,8 +225,8 @@ export const resolveAwsSdkSigV4Config = ( systemClockOffset, signingEscapePath, credentials: isUserSupplied - ? async () => - boundCredentialsProvider!().then((creds: AttributedAwsCredentialIdentity) => + ? async (options: Record | undefined) => + boundCredentialsProvider!(options).then((creds: AttributedAwsCredentialIdentity) => setCredentialFeature(creds, "CREDENTIALS_CODE", "e") ) : boundCredentialsProvider!,