diff --git a/aws/service.ts b/aws/service.ts index 741c309c..af882ba0 100644 --- a/aws/service.ts +++ b/aws/service.ts @@ -130,7 +130,7 @@ function createLoadBalancer( const loadBalancer = new aws.elasticloadbalancingv2.LoadBalancer(shortName, { loadBalancerType: useAppLoadBalancer ? "application" : "network", - subnetMappings: network.publicSubnetIds.map(s => ({ subnetId: s })), + subnets: network.publicSubnetIds, internal: internal, // If this is an application LB, we need to associate it with the ECS cluster's security group, so // that traffic on any ports can reach it. Otherwise, leave blank, and default to the VPC's group.