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 setting Azure Front Door cache duration #11508

Closed
oliwer opened this issue Apr 28, 2021 · 2 comments
Closed

Support for setting Azure Front Door cache duration #11508

oliwer opened this issue Apr 28, 2021 · 2 comments

Comments

@oliwer
Copy link

oliwer commented Apr 28, 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

Using the Azure console or CLI it is possible to set the cache duration of a forwarding rule. But there is no such option in the azurerm provider.

  • azurerm_frontdoor in the forwarding_configuration block

Potential Terraform Configuration

resource "azurerm_frontdoor" "example" {
  name                                         = "example-FrontDoor"
  location                                     = "EastUS2"
  resource_group_name                          = azurerm_resource_group.example.name
  enforce_backend_pools_certificate_name_check = false

  routing_rule {
    name               = "exampleRoutingRule1"
    accepted_protocols = ["Http", "Https"]
    patterns_to_match  = ["/*"]
    frontend_endpoints = ["exampleFrontendEndpoint1"]
    forwarding_configuration {
      forwarding_protocol = "MatchRequest"
      backend_pool_name   = "exampleBackendBing"
      cache_enabled = true
      cache_use_dynamic_compression = true
      # Missing option :(
      # cache_duration = "5h"
    }
  }

  ...
}

References

@sebader
Copy link
Contributor

sebader commented Aug 3, 2021

will be closed by #12831

@oliwer
Copy link
Author

oliwer commented Dec 5, 2024

I have not tested since I do not work with Azure anymore, but I guess this issue can be closed since #12831 was merged.

@oliwer oliwer closed this as completed Dec 5, 2024
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

3 participants