Skip to content

Commit

Permalink
docs: fix typo in example for classic LB
Browse files Browse the repository at this point in the history
Closes #13583
  • Loading branch information
SoManyHs committed Mar 16, 2021
1 parent 17952de commit 439359b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-ecs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,10 @@ const service = new ecs.Ec2Service(this, 'Service', { /* ... */ });

const lb = new elb.LoadBalancer(stack, 'LB', { vpc });
lb.addListener({ externalPort: 80 });
lb.addTarget(service.loadBalancerTarget{
lb.addTarget(service.loadBalancerTarget({
containerName: 'MyContainer',
containerPort: 80
});
}));
```

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

0 comments on commit 439359b

Please sign in to comment.