Manages a VPC Endpoint Route Table Association
resource "aws_vpc_endpoint_route_table_association" "example" {
route_table_id = aws_route_table.example.id
vpc_endpoint_id = aws_vpc_endpoint.example.id
}
This resource supports the following arguments:
route_table_id
- (Required) Identifier of the EC2 Route Table to be associated with the VPC Endpoint.vpc_endpoint_id
- (Required) Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.This resource exports the following attributes in addition to the arguments above:
id
- A hash of the EC2 Route Table and VPC Endpoint identifiers.In Terraform v1.5.0 and later, use an import
block to import VPC Endpoint Route Table Associations using vpc_endpoint_id
together with route_table_id
. For example:
import {
to = aws_vpc_endpoint_route_table_association.example
id = "vpce-aaaaaaaa/rtb-bbbbbbbb"
}
Using terraform import
, import VPC Endpoint Route Table Associations using vpc_endpoint_id
together with route_table_id
. For example:
% terraform import aws_vpc_endpoint_route_table_association.example vpce-aaaaaaaa/rtb-bbbbbbbb