Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(elasticloadbalancing): update readme on internetFacing #24732

Merged
merged 6 commits into from
Jul 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/aws-cdk-lib/aws-elasticloadbalancing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ classic load balancers.

Load balancers send traffic to one or more AutoScalingGroups. Create a load
balancer, set up listeners and a health check, and supply the fleet(s) you want
to load balance to in the `targets` property.
to load balance to in the `targets` property. If you want the load balancer to be
accessible from the internet, set `internetFacing: true`.

```ts
declare const vpc: ec2.IVpc;
Expand Down Expand Up @@ -47,6 +48,7 @@ You can add an EC2 instance to the load balancer by calling using `new InstanceT
declare const vpc: ec2.IVpc;
const lb = new elb.LoadBalancer(this, 'LB', {
vpc,
internetFacing: true,
});

// instance to add as the target for load balancer.
Expand Down