diff --git a/examples/ecs/nodejs/index.ts b/examples/ecs/nodejs/index.ts index c6a4e6ba1..607884682 100644 --- a/examples/ecs/nodejs/index.ts +++ b/examples/ecs/nodejs/index.ts @@ -29,6 +29,8 @@ const service = new ecs.FargateService("my-service", { subnets: vpc.publicSubnetIds, assignPublicIp: true, }, +}, { + dependsOn: [lb.loadBalancer], }); // Export the load balancer's address so that it's easy to access.