-
Notifications
You must be signed in to change notification settings - Fork 4.5k
(aws-ec2): Private subnets without Nat Gateway #21697
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-ec2Related to Amazon Elastic Compute CloudRelated to Amazon Elastic Compute Cloudfeature-requestA feature should be added or improved.A feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.
Description
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
| 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
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.38.1
Environment details (OS name and version, etc.)
Linux; Ubuntu
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-ec2Related to Amazon Elastic Compute CloudRelated to Amazon Elastic Compute Cloudfeature-requestA feature should be added or improved.A feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.