Skip to content

Resource: awsVpcEndpointRouteTableAssociation

Manages a VPC Endpoint Route Table Association

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.vpcEndpointRouteTableAssociation.VpcEndpointRouteTableAssociation(
  this,
  "example",
  {
    routeTableId: "${aws_route_table.example.id}",
    vpcEndpointId: "${aws_vpc_endpoint.example.id}",
  }
);

Argument Reference

The following arguments are supported:

  • routeTableId - (Required) Identifier of the EC2 Route Table to be associated with the VPC Endpoint.
  • vpcEndpointId - (Required) Identifier of the VPC Endpoint with which the EC2 Route Table will be associated.

Attributes Reference

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

  • id - A hash of the EC2 Route Table and VPC Endpoint identifiers.

Import

VPC Endpoint Route Table Associations can be imported using vpcEndpointId together with routeTableId, e.g.,

$ terraform import aws_vpc_endpoint_route_table_association.example vpce-aaaaaaaa/rtb-bbbbbbbb