Skip to content

Commit

Permalink
docs(ec2): wrong description for InterfaceVpcEndpoint (#28632)
Browse files Browse the repository at this point in the history
Change the documentation as it showing wrong description.

InterfaceVpcEndpoint class does have a open property that is default true which states traffic is automatically allowed from the VPC CIDR.

Closes #28350.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
ayush-shah-1501 authored Jan 9, 2024
1 parent 382d261 commit 3bf57de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/aws-cdk-lib/aws-ec2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -959,10 +959,9 @@ new ec2.InterfaceVpcEndpoint(this, 'VPC Endpoint', {

#### Security groups for interface VPC endpoints

By default, interface VPC endpoints create a new security group and traffic is **not**
automatically allowed from the VPC CIDR.
By default, interface VPC endpoints create a new security group and all traffic to the endpoint from within the VPC will be automatically allowed.

Use the `connections` object to allow traffic to flow to the endpoint:
Use the `connections` object to allow other traffic to flow to the endpoint:

```ts
declare const myEndpoint: ec2.InterfaceVpcEndpoint;
Expand Down

0 comments on commit 3bf57de

Please sign in to comment.