diff --git a/.changelog/32517.txt b/.changelog/32517.txt new file mode 100644 index 00000000000..19b0896af0c --- /dev/null +++ b/.changelog/32517.txt @@ -0,0 +1,3 @@ +```release-note:bug +data-source/aws_vpc_endpoint: Add `dns_options.private_dns_only_for_inbound_resolver_endpoint` +```` diff --git a/internal/service/ec2/vpc_endpoint_data_source.go b/internal/service/ec2/vpc_endpoint_data_source.go index 88fbb02a798..72fa9d423f3 100644 --- a/internal/service/ec2/vpc_endpoint_data_source.go +++ b/internal/service/ec2/vpc_endpoint_data_source.go @@ -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, + }, }, }, }, diff --git a/website/docs/d/vpc_endpoint.html.markdown b/website/docs/d/vpc_endpoint.html.markdown index 2feee7841ec..1de0afc466d 100644 --- a/website/docs/d/vpc_endpoint.html.markdown +++ b/website/docs/d/vpc_endpoint.html.markdown @@ -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`. @@ -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):