Resource: aws_vpc_endpoint_route_table_association

Manages a VPC Endpoint Route Table Association

Example Usage

resource "aws_vpc_endpoint_route_table_association" "example" {
  route_table_id  = aws_route_table.example.id
  vpc_endpoint_id = aws_vpc_endpoint.example.id
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

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