Skip to content

Commit 7781c33

Browse files
Update atlas-basic.ts (#74)
Co-authored-by: Andrea Angiolillo <[email protected]>
1 parent 5306cb7 commit 7781c33

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/l3-resources/atlas-basic.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ export class CdkTestingStack extends cdk.Stack {
6363
const clusterName = this.node.tryGetContext('clusterName') ?? 'test-cluster';
6464
const region = this.node.tryGetContext('region') ?? "US_EAST_1";
6565
const ip = this.node.tryGetContext('ip');
66+
if (!ip){
67+
throw "No context value specified for ip. Please specify via the cdk context."
68+
}
6669

6770
return {
6871
orgId,

0 commit comments

Comments
 (0)