Skip to content

Commit df678d5

Browse files
SoManyHshollanddd
authored andcommitted
docs(aws-ecs): fix typo in example for classic LB (aws#13627)
Closes aws#13583 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 9f0dbcf commit df678d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@aws-cdk/aws-ecs/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,10 @@ const service = new ecs.Ec2Service(this, 'Service', { /* ... */ });
449449

450450
const lb = new elb.LoadBalancer(stack, 'LB', { vpc });
451451
lb.addListener({ externalPort: 80 });
452-
lb.addTarget(service.loadBalancerTarget{
452+
lb.addTarget(service.loadBalancerTarget({
453453
containerName: 'MyContainer',
454454
containerPort: 80
455-
});
455+
}));
456456
```
457457

458458
There are two higher-level constructs available which include a load balancer for you that can be found in the aws-ecs-patterns module:

0 commit comments

Comments
 (0)