Skip to content

Commit 06bf37e

Browse files
author
Kamil Sobol
authored
Fix region usage in e2e tests (#2210)
1 parent f08abe4 commit 06bf37e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/cool-zoos-enjoy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/integration-tests/src/test-project-setup/data_storage_auth_with_triggers.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,12 @@ class DataStorageAuthWithTriggerTestProject extends TestProjectBase {
186186
? environment[amplifySharedSecretNameKey]
187187
: createAmplifySharedSecretName();
188188
const { region } = e2eToolingClientConfig;
189-
const env = {
189+
const env: Record<string, string> = {
190190
[amplifySharedSecretNameKey]: this.amplifySharedSecret,
191-
AWS_REGION: region ?? '',
192191
};
192+
if (region) {
193+
env.AWS_REGION = region;
194+
}
193195

194196
await this.setUpDeployEnvironment(backendIdentifier);
195197
await super.deploy(backendIdentifier, env);

0 commit comments

Comments
 (0)