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.

Attributes Reference

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

  • id - The ID of the association.

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/vpc_endpoint_subnet_association.html