From 3bdcc373056a800c0f924373f6ff52ae4e122e9b Mon Sep 17 00:00:00 2001 From: LajosPolya Date: Wed, 16 Aug 2023 21:44:56 -0400 Subject: [PATCH] Don't specify subnets for ALB and NLB to reproduce the error --- deploy-nlb-with-alb/lib/deploy-nlb-with-alb-stack.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/deploy-nlb-with-alb/lib/deploy-nlb-with-alb-stack.ts b/deploy-nlb-with-alb/lib/deploy-nlb-with-alb-stack.ts index afc854e..09bea91 100644 --- a/deploy-nlb-with-alb/lib/deploy-nlb-with-alb-stack.ts +++ b/deploy-nlb-with-alb/lib/deploy-nlb-with-alb-stack.ts @@ -93,9 +93,6 @@ export class DeployNlbWithAlbStack extends cdk.Stack { loadBalancerName: `albEc2Instance-${props.scope}`, vpc, internetFacing: true, - vpcSubnets: { - subnetType: cdk.aws_ec2.SubnetType.PRIVATE_WITH_EGRESS, - }, deletionProtection: false, }, ); @@ -133,9 +130,6 @@ export class DeployNlbWithAlbStack extends cdk.Stack { loadBalancerName: `nlbEc2Instance-${props.scope}`, vpc, internetFacing: true, - vpcSubnets: { - subnetType: cdk.aws_ec2.SubnetType.PUBLIC, - }, deletionProtection: false, }, );