aws_vpc_endpoint_route_table_association
Provides a resource to create an association between a VPC endpoint and routing table.
NOTE on VPC Endpoints and VPC Endpoint Route Table Associations: Terraform provides both a standalone VPC Endpoint Route Table Association (an association between a VPC endpoint and a single
route_table_id
) and a VPC Endpoint resource with aroute_table_ids
attribute. Do not use the same route table ID in both a VPC Endpoint resource and a VPC Endpoint Route Table Association resource. Doing so will cause a conflict of associations and will overwrite the association.
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.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/vpc_endpoint_route_table_association.html