diff --git a/packages/aws-cdk/lib/context-providers/vpcs.ts b/packages/aws-cdk/lib/context-providers/vpcs.ts index 7f68ce57b54c4..56228b0635ee1 100644 --- a/packages/aws-cdk/lib/context-providers/vpcs.ts +++ b/packages/aws-cdk/lib/context-providers/vpcs.ts @@ -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; }