Skip to content

Commit 6ad172f

Browse files
committed
mid work
1 parent 548bdcf commit 6ad172f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • packages/@aws-cdk-testing/cli-integ/lib

packages/@aws-cdk-testing/cli-integ/lib/aws.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ export class AwsClients {
9494
AWS_ACCESS_KEY_ID: this.identity.accessKeyId,
9595
AWS_SECRET_ACCESS_KEY: this.identity.secretAccessKey,
9696
AWS_SESSION_TOKEN: this.identity.sessionToken!,
97+
98+
// unset any previously used profile because the SDK will prefer
99+
// this over static env credentials. this is relevant for tests running on CodeBuild
100+
// because we use a profile as our main credentials source.
101+
AWS_PROFILE: '',
97102
} : undefined;
98103
}
99104

0 commit comments

Comments
 (0)