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

New Data Source: azurerm_cdn_endpoint #8243

Open
tehho opened this issue Aug 25, 2020 · 1 comment
Open

New Data Source: azurerm_cdn_endpoint #8243

tehho opened this issue Aug 25, 2020 · 1 comment

Comments

@tehho
Copy link

tehho commented Aug 25, 2020

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

The option to alias cdn endpoints using the endpoint as a data source.
We manage our dns and the teams manage the apps in cdn.

New or Affected Resource(s)

  • azurerm_cdn_endpoint
  • azurerm_dns_a_record

Potential Terraform Configuration

resource "azurerm_resource_group" "example" {
  name     = "acceptanceTestResourceGroup1"
  location = "West US"
}

resource "azurerm_dns_zone" "example" {
  name                = "mydomain.com"
  resource_group_name = azurerm_resource_group.example.name
}

resource "azurerm_dns_a_record" "apex" {
  name                = "@"
  zone_name           = azurerm_dns_zone.example.name
  resource_group_name = azurerm_dns_zone.example.resource_group_name
  ttl                 = 60
  target_resource_id  = data.azurerm_cdn_profile.app.id
}

data "azurerm_cdn_endpoint" "app" {
  name                = "cdn-your-name-here"
  resource_group_name = "Group-Your-Name-Here"
}
@tombuildsstuff tombuildsstuff changed the title Support for data.azurerm_cdn_endpoint New Data Source: azurerm_cdn_endpoint Aug 25, 2020
@Waidmann
Copy link

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants