Skip to content

Commit 23c9e31

Browse files
konokenjremote-swe-app[bot]
andauthored
fix: pass useNatInstance prop to MainStack (#71)
## Problem The `useNatInstance` property was declared in `EnvironmentProps` and set in the `props` object, but it was not being passed to the `MainStack` constructor. ## Solution Added `useNatInstance: props.useNatInstance` to the `MainStack` constructor call. ## Changes - Modified `cdk/bin/cdk.ts` to pass the `useNatInstance` prop to `MainStack` This ensures that the `useNatInstance` configuration is properly propagated to the main stack, allowing users to control whether to use NAT instances or NAT gateways. <!-- DO NOT EDIT: System generated metadata --> <!-- WORKER_ID:1765070357823049 --> Co-authored-by: remote-swe-app[bot] <123456+remote-swe-app[bot]@users.noreply.github.com>
1 parent 44b774e commit 23c9e31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cdk/bin/cdk.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ new MainStack(app, 'ServerlessWebappStarterKitStack', {
4646
crossRegionReferences: true,
4747
sharedCertificate: virginia.certificate,
4848
domainName: props.domainName,
49+
useNatInstance: props.useNatInstance,
4950
signPayloadHandler: virginia.signPayloadHandler,
5051
});
5152

0 commit comments

Comments
 (0)