Skip to content

Commit 0f4da11

Browse files
authored
fix: cdk-assets v2 test failing on CodeBuild canary (#53)
In the CodeBuild canaries, we configure credentials via an AssumeRole profile in the config files (whereas on GitHub Actions, we configure credentials via environment variables). Since cdk-assets v2 uses `aws-sdk-js` v2, we must set an environment variable to make it properly load those config files. Closes #49
1 parent 81cb914 commit 0f4da11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/cdk-assets/smoketest.integtest.ts

+3
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ MAJOR_VERSIONS.forEach(MV => {
7676
await fixture.shell(['npx', 'cdk-assets', '--path', 'assets.json', '--verbose', 'publish'], {
7777
modEnv: {
7878
...fixture.cdkShellEnv(),
79+
// This is necessary for cdk-assets v2, if the credentials are supplied via
80+
// config file (which they are on the CodeBuild canaries).
81+
AWS_SDK_LOAD_CONFIG: '1',
7982
},
8083
});
8184
}),

0 commit comments

Comments
 (0)