diff --git a/packages/core/src/shared/awsClientBuilderV3.ts b/packages/core/src/shared/awsClientBuilderV3.ts index c51cc009e91..9526b7df344 100644 --- a/packages/core/src/shared/awsClientBuilderV3.ts +++ b/packages/core/src/shared/awsClientBuilderV3.ts @@ -120,10 +120,12 @@ export class AWSClientBuilderV3 { private keyAwsService(serviceOptions: AwsServiceOptions): string { // Serializing certain objects in the args allows us to detect when nested objects change (ex. new retry strategy, endpoints) + const profileId = this.context.getCredentialProfileName() return [ String(serviceOptions.serviceClient), JSON.stringify(serviceOptions.clientOptions), serviceOptions.region, + profileId, serviceOptions.userAgent ? '1' : '0', serviceOptions.settings ? JSON.stringify(serviceOptions.settings.get('endpoints', {})) : '', ].join(':') diff --git a/packages/toolkit/.changes/next-release/Bug Fix-6318dec2-72a8-4464-ab84-e51913624f8c.json b/packages/toolkit/.changes/next-release/Bug Fix-6318dec2-72a8-4464-ab84-e51913624f8c.json new file mode 100644 index 00000000000..d1afd281fb5 --- /dev/null +++ b/packages/toolkit/.changes/next-release/Bug Fix-6318dec2-72a8-4464-ab84-e51913624f8c.json @@ -0,0 +1,4 @@ +{ + "type": "Bug Fix", + "description": "S3 node in explorer is not refreshed on profile change" +}