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, }, );