» Resource: aws_vpc_endpoint_service

Provides a VPC Endpoint Service resource. Service consumers can create an Interface VPC Endpoint to connect to the service.

» Example Usage

Basic usage:

resource "aws_vpc_endpoint_service" "foo" {
  acceptance_required        = false
  network_load_balancer_arns = ["${aws_lb.test.arn}"]
}

» Argument Reference

The following arguments are supported:

  • acceptance_required - (Required) Whether or not VPC endpoint connection requests to the service must be accepted by the service owner - true or false.
  • network_load_balancer_arns - (Required) The ARNs of one or more Network Load Balancers for the endpoint service.
  • allowed_principals - (Optional) The ARNs of one or more principals allowed to discover the endpoint service.

» Attributes Reference

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

» Import

VPC Endpoint Services can be imported using the VPC endpoint service id, e.g.

$ terraform import aws_vpc_endpoint_service.foo vpce-svc-0f97a19d3fa8220bc