Skip to content

Commit 0f52a8d

Browse files
authored
testing: examples/ecs/nodejs add missing dependsOn (#1441)
Pulumi was not recognizing that the underlying aws.ecs.Service should wait for the load balancer to be provisioned, causing a race that sporadically would flake up the test. This is now compensated by with a dependsOn option. Fixes #1418
1 parent 9d4ab2d commit 0f52a8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/ecs/nodejs/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ const service = new ecs.FargateService("my-service", {
2929
subnets: vpc.publicSubnetIds,
3030
assignPublicIp: true,
3131
},
32+
}, {
33+
dependsOn: [lb.loadBalancer],
3234
});
3335

3436
// Export the load balancer's address so that it's easy to access.

0 commit comments

Comments
 (0)