hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.71k stars 9.07k forks source link

[New Data Source]: List of AWS ROUTE53 RECORDS. Providing differents ways to filter #31703

Open luarx opened 1 year ago

luarx commented 1 year ago

Description

A new datasource to obtain a list of aws route53 records using different filters.

The main use case why this is requested is to create a Terraform logic that:

Requested Resource(s) and/or Data Source(s)

data "aws_route53_records" "selected" {
  [optional] zone_id = "test.com."
  [optional] name=  "*.blabla.test.com." (this accepts regex)
  [optional] private_zone = true
}

Potential Terraform Configuration

No response

References

No response

Would you like to implement a fix?

No

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

justinretzolk commented 1 year ago

Relates: #27851 Relates: #24045

PT-GD commented 3 months ago

In implementing this, please also include tags as a filter, just as in https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/route53_zone#tags .

An example use cases would include a Kubernetes cluster where a load balancer is constructed by a controller in the cluster, however other Terraform resources depend on the dynamically generated name of the load balancer.

Siddarthyuvaraj commented 1 month ago

PR has been raised for this issue https://github.com/hashicorp/terraform-provider-aws/pull/38186