Skip to content

fix: pass useNatInstance prop to MainStack#71

Merged
tmokmss merged 1 commit intoaws-samples:mainfrom
konokenj:fix/pass-use-nat-instance-prop-1765070891
Dec 7, 2025
Merged

fix: pass useNatInstance prop to MainStack#71
tmokmss merged 1 commit intoaws-samples:mainfrom
konokenj:fix/pass-use-nat-instance-prop-1765070891

Conversation

@konokenj
Copy link
Copy Markdown
Contributor

@konokenj konokenj commented Dec 7, 2025

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.

@tmokmss
Copy link
Copy Markdown
Contributor

tmokmss commented Dec 7, 2025

Thanks!

@tmokmss tmokmss merged commit 23c9e31 into aws-samples:main Dec 7, 2025
2 checks passed
@konokenj konokenj deleted the fix/pass-use-nat-instance-prop-1765070891 branch December 7, 2025 04:31
konokenj pushed a commit that referenced this pull request Mar 18, 2026
🤖 I have created a release *beep* *boop*
---


## 2.0.0 (2026-03-18)


### Features

* invalidate cloudfront caches when lambda configuration changes
([#63](#63))
([b76d122](b76d122))


### Bug Fixes

* pass useNatInstance prop to MainStack
([#71](#71))
([23c9e31](23c9e31))
* Workflow does not contain permissions
([#59](#59))
([34be1de](34be1de))
* Workflow does not contain permissions
([#60](#60))
([6fb8901](6fb8901))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants