Skip to content

Commit

Permalink
docs(aws-ecs): fix typo in example for classic LB (#13627)
Browse files Browse the repository at this point in the history
Closes #13583


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
SoManyHs authored Mar 17, 2021
1 parent 17952de commit e5297b1
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 e5297b1

Please sign in to comment.