Skip to content

Commit

Permalink
Merge pull request #32517 from hashicorp/b-vpc_endpoint-private_dns_o…
Browse files Browse the repository at this point in the history
…ptions

Add additional attribute to `aws_vpc_endpoint` data source
  • Loading branch information
justinretzolk committed Jul 17, 2023
2 parents b96ffe0 + d05ce51 commit cfc9826
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/32517.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
data-source/aws_vpc_endpoint: Add `dns_options.private_dns_only_for_inbound_resolver_endpoint`
````
4 changes: 4 additions & 0 deletions internal/service/ec2/vpc_endpoint_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ func DataSourceVPCEndpoint() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"private_dns_only_for_inbound_resolver_endpoint": {
Type: schema.TypeBool,
Computed: true,
},
},
},
},
Expand Down
12 changes: 11 additions & 1 deletion website/docs/d/vpc_endpoint.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ In addition to all arguments above except `filter`, the following attributes are

* `arn` - ARN of the VPC endpoint.
* `cidr_blocks` - List of CIDR blocks for the exposed AWS service. Applicable for endpoints of type `Gateway`.
* `dns_entry` - DNS entries for the VPC Endpoint. Applicable for endpoints of type `Interface`. DNS blocks are documented below.
* `dns_entry` - DNS entries for the VPC Endpoint. Applicable for endpoints of type `Interface`. [DNS entry blocks are documented below](#dns_entry-block).
* `dns_options` - DNS options for the VPC Endpoint. [DNS options blocks are documented below](#dns_options-block).
* `network_interface_ids` - One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type `Interface`.
* `owner_id` - ID of the AWS account that owns the VPC endpoint.
* `policy` - Policy document associated with the VPC Endpoint. Applicable for endpoints of type `Gateway`.
Expand All @@ -65,11 +66,20 @@ In addition to all arguments above except `filter`, the following attributes are
* `subnet_ids` - One or more subnets in which the VPC Endpoint is located. Applicable for endpoints of type `Interface`.
* `vpc_endpoint_type` - VPC Endpoint type, `Gateway` or `Interface`.

### `dns_entry` Block

DNS blocks (for `dns_entry`) support the following attributes:

* `dns_name` - DNS name.
* `hosted_zone_id` - ID of the private hosted zone.

### `dns_options` Block

DNS options (for `dns_options`) support the following attributes:

* `dns_record_ip_type` - The DNS records created for the endpoint.
* `private_dns_only_for_inbound_resolver_endpoint` - Indicates whether to enable private DNS only for inbound endpoints.

## Timeouts

[Configuration options](https://developer.hashicorp.com/terraform/language/resources/syntax#operation-timeouts):
Expand Down

0 comments on commit cfc9826

Please sign in to comment.