aws_vpc_endpoint_route_table_association

Provides a resource to create an association between a VPC endpoint and routing table.

Example Usage

Basic usage:

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

Argument Reference

The following arguments are supported:

  • vpc_endpoint_id - (Required) The ID of the VPC endpoint with which the routing table will be associated.
  • route_table_id - (Required) The ID of the routing table to be associated with the VPC endpoint.

Attributes Reference

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

  • id - The ID of the association.