Skip to content

Commit

Permalink
Don't specify subnets for ALB and NLB to reproduce the error
Browse files Browse the repository at this point in the history
  • Loading branch information
LajosPolya committed Aug 17, 2023
1 parent 1b23b53 commit 3bdcc37
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions deploy-nlb-with-alb/lib/deploy-nlb-with-alb-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
);
Expand Down Expand Up @@ -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,
},
);
Expand Down

0 comments on commit 3bdcc37

Please sign in to comment.