Skip to content

Commit

Permalink
update subnet categorize logic, check if subnet has route to CloudWAN…
Browse files Browse the repository at this point in the history
… and treat as SubnetType.Private
  • Loading branch information
VardyNg committed Dec 11, 2024
1 parent 8ddf38b commit 868dc09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/aws-cdk/lib/context-providers/vpcs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ export class VpcNetworkContextProviderPlugin implements ContextProviderPlugin {
if (type === undefined && routeTables.hasRouteToTransitGateway(subnet.SubnetId)) {
type = SubnetType.Private;
}
if (type === undefined && routeTables.hasRouteToCloudWAN(subnet.SubnetId)) {
type = SubnetType.Private;
}
if (type === undefined) {
type = SubnetType.Isolated;
}
Expand Down

0 comments on commit 868dc09

Please sign in to comment.