Describe the feature
Allow for more flexible subnet configuration; with regard to networking solutions not involving nat gateways.
Use Case
To allow a three tier subnet structure where the private subnet has egress with Transit Gateway.
Currently a private subnet must have egress with NAT gateways.
|
function determineNatGatewayCount(requestedCount: number | undefined, subnetConfig: SubnetConfiguration[], azCount: number) { |
Proposed Solution
Add a new subnet type PRIVATE_WITH_EGRESS which does not require the natgateway check. For all other intents and purposes it behaves like PRIVATE_WITH_NAT
Other Information
#21189
Acknowledgements
CDK version used
2.38.1
Environment details (OS name and version, etc.)
Linux; Ubuntu
Describe the feature
Allow for more flexible subnet configuration; with regard to networking solutions not involving nat gateways.
Use Case
To allow a three tier subnet structure where the private subnet has egress with Transit Gateway.
Currently a private subnet must have egress with NAT gateways.
aws-cdk/packages/@aws-cdk/aws-ec2/lib/vpc.ts
Line 2207 in 62cbcde
Proposed Solution
Add a new subnet type
PRIVATE_WITH_EGRESSwhich does not require the natgateway check. For all other intents and purposes it behaves likePRIVATE_WITH_NATOther Information
#21189
Acknowledgements
CDK version used
2.38.1
Environment details (OS name and version, etc.)
Linux; Ubuntu