github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/d/vpc_endpoint.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_vpc_endpoint"
     4  sidebar_current: "docs-aws-datasource-vpc-endpoint-x"
     5  description: |-
     6      Provides details about a specific VPC endpoint.
     7  ---
     8  
     9  # aws\_vpc\_endpoint
    10  
    11  The VPC Endpoint data source provides details about
    12  a specific VPC endpoint.
    13  
    14  ## Example Usage
    15  
    16  ```hcl
    17  # Declare the data source
    18  data "aws_vpc_endpoint" "s3" {
    19    vpc_id       = "${aws_vpc.foo.id}"
    20    service_name = "com.amazonaws.us-west-2.s3"
    21  }
    22  
    23  resource "aws_vpc_endpoint_route_table_association" "private_s3" {
    24    vpc_endpoint_id = "${data.aws_vpc_endpoint.s3.id}"
    25    route_table_id  = "${aws_route_table.private.id}"
    26  }
    27  ```
    28  
    29  ## Argument Reference
    30  
    31  The arguments of this data source act as filters for querying the available VPC endpoints.
    32  The given filters must match exactly one VPC endpoint whose data will be exported as attributes.
    33  
    34  * `id` - (Optional) The ID of the specific VPC Endpoint to retrieve.
    35  
    36  * `state` - (Optional) The state of the specific VPC Endpoint to retrieve.
    37  
    38  * `vpc_id` - (Optional) The ID of the VPC in which the specific VPC Endpoint is used.
    39  
    40  * `service_name` - (Optional) The AWS service name of the specific VPC Endpoint to retrieve.
    41  
    42  ## Attributes Reference
    43  
    44  All of the argument attributes are also exported as result attributes.
    45  
    46  * `policy` - The policy document associated with the VPC Endpoint.
    47  
    48  * `route_table_ids` - One or more route tables associated with the VPC Endpoint.