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

Feature Request: Azure Front Door #3186

Closed
deadwards90 opened this issue Apr 5, 2019 · 6 comments · Fixed by #3933 or #4125
Closed

Feature Request: Azure Front Door #3186

deadwards90 opened this issue Apr 5, 2019 · 6 comments · Fixed by #3933 or #4125

Comments

@deadwards90
Copy link

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

Azure Front door has gone into GA:
https://azure.microsoft.com/en-gb/services/frontdoor/
https://azure.microsoft.com/en-gb/blog/azure-front-door-service-is-now-generally-available/

Would be really good to have this supported by the provider.

New or Affected Resource(s)

New resource of

  • azurerm_front_door
  • azurerm_front_door_health_probe_setting
  • azurerm_front_door_load_balancing_setting
  • azurerm_front_door_frontend_host
  • azurerm_front_door_backend
  • azurerm_front_door_backend_pool
  • azurerm_front_door_routing_rule

Potential Terraform Configuration

resource "azurerm_front_door" "test" {
  name = "example-frontdoor"
  location            = "${azurerm_resource_group.test.location}"
  resource_group_name = "${azurerm_resource_group.test.name}"
  state = "enabled"
}

resource "azurerm_front_door_health_probe_setting" "test" {
  name = "example-healthprobesetting"
  path = "/"
  protocol = "https"
  interval = 120
}

resource "azurerm_front_door_load_balancer_setting" "test" {
  name = "example-loadbalancersetting"
  sample_size = "4"
  successful_samples_required = "2"
}

resource "azurerm_front_door_frontend_host" "test" {
  name = "example-frontendhost"
  host_name = "example-frontendhost.azuredf.net"
  session_affinity_state = "enabled"
  session_affinity_ttl = "0"
}

resource "azurerm_front_door_backend_pool" "test" {
  name = "example-backendpool"
  load_balancer_setting = "${azurerm_front_door_load_balancer_setting.test.id}"
  health_probe_setting = "${azurerm_front_door_health_probe_setting.test.id}"
}

resource "azurerm_front_door_backend" "test" {
  "backend_pool" = "${azurerm_front_door_backend_pool.test.id}"
  "address" = "some-back-end-address" #Not sure on this bit, could refer to an app service for example
  "http_port" = "80"
  "https_port" = "443"
  "weight" = "50"
  "priority" = "1"
  "state" = "enabled"  
}

resource "azurerm_front_door_routing_rule" "test" {
  name = "example-routingrule"
  resource_group_name = "${azurerm_resource_group.test.name}"
  front_endpoints = [
     "${azurerm_front_door_frontend_host.test.id}"
  ]
  backend_pool = "${azurerm_front_door_backend_pool.test.id}"
  accepted_protocols = [
    "http",
    "https"
  ]
  patterns_to_match = [
    "/*"
  ]
  forwarding_protocol = "MatchRequest"
  state = "enabled"
}

There are probably resources you can merge together, not sure how these things are usually split out from terraforms perspective. This is basically based off the ARM script below.

References

The basic ARM example for Front Door:
https://github.com/Azure/azure-quickstart-templates/blob/master/101-front-door-create-basic/azuredeploy.json

@izep
Copy link

izep commented Jun 21, 2019

I like the proposed breakout for it. At a glance it's similar to the load balancer which I like. The application gateway, which has everything in a single giant resource, is much less useful IMHO.

@katbyte katbyte modified the milestones: v1.31.0, v1.32.0 Jun 28, 2019
@Philluxx
Copy link

Philluxx commented Jul 2, 2019

Any news on this? Front Door integration is highly appreciated!

@adback03
Copy link

Another thing to consider as part of this would be support for creating a Web Application Firewall as well. It is now generally available: https://azure.microsoft.com/en-us/updates/web-application-firewall-for-azure-front-door-service-available/.

@deadwards90
Copy link
Author

@adback03 looks like something is being included for that:
8291122#diff-9ad287782e22ef9d4d0572130159511eR329

@ghost
Copy link

ghost commented Sep 18, 2019

This has been released in version 1.34.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 1.34.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Oct 7, 2019

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 Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.