github.com/jmbataller/terraform@v0.6.8-0.20151125192640-b7a12e3a580c/website/source/docs/providers/aws/r/vpc_endpoint.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_vpc_endpoint"
     4  sidebar_current: "docs-aws-resource-vpc-endpoint"
     5  description: |-
     6    Provides a VPC Endpoint resource.
     7  ---
     8  
     9  # aws\_vpc\_endpoint
    10  
    11  Provides a VPC Endpoint resource.
    12  
    13  ## Example Usage
    14  
    15  Basic usage:
    16  
    17  ```
    18  resource "aws_vpc_endpoint" "private-s3" {
    19      vpc_id = "${aws_vpc.main.id}"
    20      service_name = "com.amazonaws.us-west-2.s3"
    21  }
    22  ```
    23  
    24  ## Argument Reference
    25  
    26  The following arguments are supported:
    27  
    28  * `vpc_id` - (Required) The ID of the VPC in which the endpoint will be used.
    29  * `service_name` - (Required) The AWS service name, in the form `com.amazonaws.region.service`.
    30  * `policy` - (Optional) A policy to attach to the endpoint that controls access to the service.
    31  * `route_table_ids` - (Optional) One or more route table IDs.
    32  
    33  ## Attributes Reference
    34  
    35  The following attributes are exported:
    36  
    37  * `id` - The ID of the VPC endpoint.