diff --git a/terraform/README.md b/terraform/README.md index 45d2258a1..a698e2f60 100644 --- a/terraform/README.md +++ b/terraform/README.md @@ -149,6 +149,7 @@ No resources. | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| +| [app\_configuration\_sku](#input\_app\_configuration\_sku) | The SKU name of the App Configuration. Possible values are free and standard. Defaults to free. | `string` | `"free"` | no | | [azure\_client\_id](#input\_azure\_client\_id) | Service Principal Client ID | `string` | n/a | yes | | [azure\_client\_secret](#input\_azure\_client\_secret) | Service Principal Client Secret | `string` | n/a | yes | | [azure\_location](#input\_azure\_location) | Azure location in which to launch resources. | `string` | n/a | yes | @@ -175,6 +176,7 @@ No resources. | [dns\_ns\_records](#input\_dns\_ns\_records) | DNS NS records to add to the DNS zone |
map(| `{}` | no | | [dns\_txt\_records](#input\_dns\_txt\_records) | DNS TXT records to add to the DNS zone |
object({
ttl : optional(number),
records : list(string)
})
)
map(| `{}` | no | | [dns\_zone\_domain\_name](#input\_dns\_zone\_domain\_name) | DNS zone domain name. If specified, records will automatically be created to point to the CDN. | `string` | n/a | yes | +| [enable\_app\_configuration](#input\_enable\_app\_configuration) | Deploy an Azure App Configuration resource | `bool` | `false` | no | | [enable\_cdn\_frontdoor](#input\_enable\_cdn\_frontdoor) | Enable Azure CDN FrontDoor. This will use the Container Apps endpoint as the origin. | `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\_cdn\_frontdoor\_vdp\_redirects](#input\_enable\_cdn\_frontdoor\_vdp\_redirects) | Deploy redirects for security.txt and thanks.txt to an external Vulnerability Disclosure Program service | `bool` | `true` | no | diff --git a/terraform/container-apps-hosting.tf b/terraform/container-apps-hosting.tf index 5dcb6697e..77bf8ad85 100644 --- a/terraform/container-apps-hosting.tf +++ b/terraform/container-apps-hosting.tf @@ -27,6 +27,10 @@ module "azure_container_apps_hosting" { custom_container_apps = local.custom_container_apps + enable_app_configuration = local.enable_app_configuration + app_configuration_sku = local.app_configuration_sku + app_configuration_assign_role = local.app_configuration_assign_role + enable_worker_container = local.enable_worker_container worker_container_command = local.worker_container_command worker_container_max_replicas = local.worker_container_max_replicas diff --git a/terraform/locals.tf b/terraform/locals.tf index 1f48e42d6..553764301 100644 --- a/terraform/locals.tf +++ b/terraform/locals.tf @@ -72,4 +72,7 @@ locals { enable_cdn_frontdoor_vdp_redirects = var.enable_cdn_frontdoor_vdp_redirects cdn_frontdoor_vdp_destination_hostname = var.cdn_frontdoor_vdp_destination_hostname custom_container_apps = var.custom_container_apps + enable_app_configuration = var.enable_app_configuration + app_configuration_sku = var.app_configuration_sku + app_configuration_assign_role = false } diff --git a/terraform/variables.tf b/terraform/variables.tf index beeb24cb4..980dcfc59 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -522,3 +522,15 @@ variable "custom_container_apps" { })) default = {} } + +variable "enable_app_configuration" { + description = "Deploy an Azure App Configuration resource" + type = bool + default = false +} + +variable "app_configuration_sku" { + description = "The SKU name of the App Configuration. Possible values are free and standard. Defaults to free." + type = string + default = "free" +}
object({
ttl : optional(number),
records : list(string)
})
)