Allow VPCs to have a default gateway via VPN gateway #7918
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Use Case
You can currently create a VPC with isolated subnets and a VPN Gateway via something like:
However, there's currently no way for those isolated subnets to treat the VPN gateway as their default route. This case is common in setups where all internet-bound traffic goes through another account/VPC.
Proposed Solution
This configuration will then call the existing
subnet.addDefaultInternetRoute()
method (currently only used for Internet Gateways) passing in the selected subnets and the newly created VPNGW attachment.Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: