» aws_vpc_endpoint_subnet_association

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

» Example Usage

Basic usage:

resource "aws_vpc_endpoint_subnet_association" "sn_ec2" {
  vpc_endpoint_id = "${aws_vpc_endpoint.ec2.id}"
  subnet_id       = "${aws_subnet.sn.id}"
}

» Argument Reference

The following arguments are supported:

  • vpc_endpoint_id - (Required) The ID of the VPC endpoint with which the subnet will be associated.
  • subnet_id - (Required) The ID of the subnet to be associated with the VPC endpoint.

» Timeouts

aws_vpc_endpoint_subnet_association provides the following Timeouts configuration options:

  • create - (Default 10 minutes) Used for creating the association
  • delete - (Default 10 minutes) Used for destroying the association

» Attributes Reference

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

  • id - The ID of the association.