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

Can't update Azure CDN Origin Host Header #97

Closed
hashibot opened this issue Jun 13, 2017 · 2 comments · Fixed by #134
Closed

Can't update Azure CDN Origin Host Header #97

hashibot opened this issue Jun 13, 2017 · 2 comments · Fixed by #134
Labels

Comments

@hashibot
Copy link

This issue was originally opened by @phekmat as hashicorp/terraform#14968. It was migrated here as part of the provider split. The original body of the issue is below.


Terraform Version

0.9.6 (also tested with 0.9.4)

Affected Resource(s)

  • azurerm_cdn_endpoint

Terraform Configuration Files

resource "azurerm_cdn_profile" "cdn" {
  name                = "test-cdn"
  resource_group_name = "${azurerm_resource_group.test.name}"
  location            = "East US"
  sku                 = "Standard_Verizon"
}

resource "azurerm_cdn_endpoint" "cdn" {
  name                = "test-cdn"
  profile_name        = "${azurerm_cdn_profile.cdn.name}"
  resource_group_name = "${azurerm_resource_group.test.name}"
  location            = "East US"

  querystring_caching_behaviour = "UseQueryString"

  origin {
    name       = "${azurerm_storage_account.cdn.name}-blob-core-windows-net"
    host_name  = "${azurerm_storage_account.cdn.name}.blob.core.windows.net"
    http_port  = 80
    https_port = 443
  }

  origin_host_header = "${azurerm_storage_account.cdn.name}.blob.core.windows.net"
  origin_path = "/${azurerm_storage_container.cdn.name}/"
}

Expected Behavior

Changing the origin_host_header after the resource has been created should update the endpoint

Actual Behavior

The header remains unchanged and can be verified by rerunning terraform plan or looking at the endpoint in the portal.

Steps to Reproduce

  1. Add a CDN endpoint (with or without the origin_host_header)
  2. terraform apply
  3. Modify/add the origin_host_header
  4. terraform apply
@tombuildsstuff
Copy link
Contributor

Hey @phekmat

Thanks for opening this issue - just a heads up that I've opened PR #134 which contains a fix to this issue :)

Thanks!

@ghost
Copy link

ghost commented Apr 1, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
2 participants