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

Support for azurerm_dns_*_record data sources #14513

Closed
Stolpe opened this issue Dec 7, 2021 · 1 comment · Fixed by #17477
Closed

Support for azurerm_dns_*_record data sources #14513

Stolpe opened this issue Dec 7, 2021 · 1 comment · Fixed by #17477

Comments

@Stolpe
Copy link
Contributor

Stolpe commented Dec 7, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Hi,

I would like the ability to point to the various dns record types as data sources. In my use-case, I don't have write access to the DNS Zone, but I would like to point to external records, if nothing else than just to verify that I have spelled the various domain names correctly.

My use-case is that I want to set up Managed Certificates in an enterprise environment, where my team has read-only access to the shared DNS Zone.

New or Affected Resource(s)

  • azurerm_dns_a_record
  • azurerm_dns_aaaa_record
  • azurerm_dns_caa_record
  • azurerm_dns_cname_record
  • azurerm_dns_mx_record
  • azurerm_dns_ns_record
  • azurerm_dns_ptr_record
  • azurerm_dns_srv_record
  • azurerm_dns_txt_record

Potential Terraform Configuration

data "azurerm_dns_cname_record" "cname_record" {
  name = var.cname_record_name
  zone_name = data.azurerm_dns_zone.dns_zone.name
  resource_group_name = data.azurerm_dns_zone.dns_zone.resource_group_name
}

data "azurerm_dns_txt_record" "txt_record" {
  name = var.txt_record_name
  zone_name = data.azurerm_dns_zone.dns_zone.name
  resource_group_name = data.azurerm_dns_zone.dns_zone.resource_group_name
}

#...

References

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants