Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional attribute to aws_vpc_endpoint data source #32517

Merged
merged 2 commits into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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