From 111922c64f10891d717685647b7c8c1c4a13811a Mon Sep 17 00:00:00 2001 From: iliapolo Date: Mon, 21 Apr 2025 12:48:05 +0300 Subject: [PATCH] mid work --- packages/@aws-cdk-testing/cli-integ/lib/aws.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/@aws-cdk-testing/cli-integ/lib/aws.ts b/packages/@aws-cdk-testing/cli-integ/lib/aws.ts index 788e675..0bd8825 100644 --- a/packages/@aws-cdk-testing/cli-integ/lib/aws.ts +++ b/packages/@aws-cdk-testing/cli-integ/lib/aws.ts @@ -94,6 +94,11 @@ export class AwsClients { AWS_ACCESS_KEY_ID: this.identity.accessKeyId, AWS_SECRET_ACCESS_KEY: this.identity.secretAccessKey, AWS_SESSION_TOKEN: this.identity.sessionToken!, + + // unset any previously used profile because the SDK will prefer + // this over static env credentials. this is relevant for tests running on CodeBuild + // because we use a profile as our main credentials source. + AWS_PROFILE: '', } : undefined; }