Skip to content

Commit

Permalink
add filter support - docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Mar 16, 2020
1 parent dfda0cd commit cafa896
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions website/docs/d/vpc_endpoint_service.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ can be specified when creating a VPC endpoint within the region configured in th

## Example Usage

### AWS Service
AWS service usage:

```hcl
# Declare the data source
Expand All @@ -33,15 +33,15 @@ resource "aws_vpc_endpoint" "ep" {
}
```

### Non-AWS Service
Non-AWS service usage:

```hcl
data "aws_vpc_endpoint_service" "custome" {
service_name = "com.amazonaws.vpce.us-west-2.vpce-svc-0e87519c997c63cd8"
}
```

### Filter:
Filter usage:

```hcl
data "aws_vpc_endpoint_service" "test" {
Expand All @@ -58,12 +58,12 @@ The arguments of this data source act as filters for querying the available VPC
The given filters must match exactly one VPC endpoint service whose data will be exported as attributes.

* `service` - (Optional) The common name of an AWS service (e.g. `s3`).
* `service_name` - (Optional) The service name that is specified when creating a VPC endpoint. For AWS services the service name is usually in the form `com.amazonaws.<region>.<service>` (the SageMaker Notebook service is an exception to this rule, the service name is in the form `aws.sagemaker.<region>.notebook`).
* `service_name` - (Optional) The service name that can be specified when creating a VPC endpoint.
* `filter` - (Optional) One or more name/value pairs to use as filters. There are
several valid keys, for a full reference, check out
[describe-vpc-endpoint-services in the AWS CLI reference][1].

~> **NOTE:** Specifying `service` will not work for non-AWS services or AWS services that don't follow the standard `service_name` pattern of `com.amazonaws.<region>.<service>`.
~> **NOTE:** One of `service` or `service_name` must be specified.

## Attributes Reference

Expand Down

0 comments on commit cafa896

Please sign in to comment.