Skip to content

(aws-ec2): Private subnets without Nat Gateway #21697

@jmortlock

Description

@jmortlock

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

  • 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

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-ec2Related to Amazon Elastic Compute Cloudfeature-requestA feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions