diff --git a/terraform/README.md b/terraform/README.md index 948f67376..cc4c79574 100644 --- a/terraform/README.md +++ b/terraform/README.md @@ -169,6 +169,7 @@ No resources. | [dns\_txt\_records](#input\_dns\_txt\_records) | DNS TXT records to add to the DNS Zone |
map(| n/a | yes | | [dns\_zone\_domain\_name](#input\_dns\_zone\_domain\_name) | DNS zone domain name. If created, records will automatically be created to point to the CDN. | `string` | n/a | yes | | [enable\_cdn\_frontdoor](#input\_enable\_cdn\_frontdoor) | Set to true to create a CDN | `bool` | n/a | yes | +| [enable\_cdn\_frontdoor\_health\_probe](#input\_enable\_cdn\_frontdoor\_health\_probe) | Enable CDN Front Door health probe | `bool` | `false` | no | | [enable\_container\_registry](#input\_enable\_container\_registry) | Set to true to create a container registry | `bool` | n/a | yes | | [enable\_dns\_zone](#input\_enable\_dns\_zone) | Conditionally create a DNS zone | `bool` | n/a | yes | | [enable\_event\_hub](#input\_enable\_event\_hub) | Send Azure Container App logs to an Event Hub sink | `bool` | `false` | no | diff --git a/terraform/container-apps-hosting.tf b/terraform/container-apps-hosting.tf index 90c2c535e..087c68a64 100644 --- a/terraform/container-apps-hosting.tf +++ b/terraform/container-apps-hosting.tf @@ -38,6 +38,7 @@ module "azure_container_apps_hosting" { cdn_frontdoor_origin_fqdn_override = local.cdn_frontdoor_origin_fqdn_override cdn_frontdoor_origin_host_header_override = local.cdn_frontdoor_origin_host_header_override cdn_frontdoor_health_probe_protocol = local.cdn_frontdoor_health_probe_protocol + enable_cdn_frontdoor_health_probe = local.enable_cdn_frontdoor_health_probe container_apps_allow_ips_inbound = local.container_apps_allow_ips_inbound container_health_probe_path = local.container_health_probe_path diff --git a/terraform/locals.tf b/terraform/locals.tf index e54dab380..854859865 100644 --- a/terraform/locals.tf +++ b/terraform/locals.tf @@ -31,6 +31,7 @@ locals { cdn_frontdoor_origin_host_header_override = var.cdn_frontdoor_origin_host_header_override cdn_frontdoor_forwarding_protocol = var.cdn_frontdoor_forwarding_protocol cdn_frontdoor_health_probe_protocol = var.cdn_frontdoor_health_probe_protocol + enable_cdn_frontdoor_health_probe = var.enable_cdn_frontdoor_health_probe key_vault_access_ipv4 = var.key_vault_access_ipv4 tfvars_filename = var.tfvars_filename container_health_probe_path = var.container_health_probe_path diff --git a/terraform/variables.tf b/terraform/variables.tf index 4e9a45c16..95e7e7700 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -133,6 +133,12 @@ variable "cdn_frontdoor_health_probe_protocol" { default = "Https" } +variable "enable_cdn_frontdoor_health_probe" { + description = "Enable CDN Front Door health probe" + type = bool + default = false +} + variable "container_health_probe_path" { description = "Specifies the path that is used to determine the liveness of the Container" type = string
object({
ttl : optional(number, 300),
records : list(string)
})
)