forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vpc): additional validation around Subnet Types (aws#4668)
Try to improve the usability around VPCs and certain Subnet Type configurations. - Make clear that ISOLATED does not mean "no Internet access at all", just no Internet access from the point of view of the current VPC. - If people configure natGateways=0, tell them that they probably meant to configure no PRIVATE subnets. - If people DO configure PRIVATE subnets, make sure they also configure PUBLIC subnets, otherwise we won't be able to place the NAT gateways anywhere useful. - If people end up with a VPC without PRIVATE subnets, the default behavior of `selectSubnets` is pretty useless, because it can never work, and that's not what people are used to from the CDK. Dynamically adjust the selection default to whatever subnet types *are* available. Fixes aws#3704.
- Loading branch information
1 parent
0e96575
commit 9a96c37
Showing
2 changed files
with
140 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters