Data Source: aws_vpc_endpoint

The VPC Endpoint data source provides details about a specific VPC endpoint.

Example Usage

# Declare the data source
data "aws_vpc_endpoint" "s3" {
  vpc_id       = aws_vpc.foo.id
  service_name = "com.amazonaws.us-west-2.s3"
}

resource "aws_vpc_endpoint_route_table_association" "private_s3" {
  vpc_endpoint_id = data.aws_vpc_endpoint.s3.id
  route_table_id  = aws_route_table.private.id
}

Argument Reference

The arguments of this data source act as filters for querying the available VPC endpoints. The given filters must match exactly one VPC endpoint whose data will be exported as attributes.

More complex filters can be expressed using one or more filter sub-blocks, which take the following arguments:

Attribute Reference

In addition to all arguments above except filter, the following attributes are exported:

dns_entry Block

DNS blocks (for dns_entry) support the following attributes:

dns_options Block

DNS options (for dns_options) support the following attributes:

Timeouts

Configuration options: