Skip to content

Commit

Permalink
Launch Azure App Configuration resource
Browse files Browse the repository at this point in the history
  • Loading branch information
DrizzlyOwl committed Dec 19, 2024
1 parent 8e821a3 commit 8d110cd
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ No resources.

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_app_configuration_sku"></a> [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 |
| <a name="input_azure_client_id"></a> [azure\_client\_id](#input\_azure\_client\_id) | Service Principal Client ID | `string` | n/a | yes |
| <a name="input_azure_client_secret"></a> [azure\_client\_secret](#input\_azure\_client\_secret) | Service Principal Client Secret | `string` | n/a | yes |
| <a name="input_azure_location"></a> [azure\_location](#input\_azure\_location) | Azure location in which to launch resources. | `string` | n/a | yes |
Expand All @@ -175,6 +176,7 @@ No resources.
| <a name="input_dns_ns_records"></a> [dns\_ns\_records](#input\_dns\_ns\_records) | DNS NS records to add to the DNS zone | <pre>map(<br/> object({<br/> ttl : optional(number),<br/> records : list(string)<br/> })<br/> )</pre> | `{}` | no |
| <a name="input_dns_txt_records"></a> [dns\_txt\_records](#input\_dns\_txt\_records) | DNS TXT records to add to the DNS zone | <pre>map(<br/> object({<br/> ttl : optional(number),<br/> records : list(string)<br/> })<br/> )</pre> | `{}` | no |
| <a name="input_dns_zone_domain_name"></a> [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 |
| <a name="input_enable_app_configuration"></a> [enable\_app\_configuration](#input\_enable\_app\_configuration) | Deploy an Azure App Configuration resource | `bool` | `false` | no |
| <a name="input_enable_cdn_frontdoor"></a> [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 |
| <a name="input_enable_cdn_frontdoor_health_probe"></a> [enable\_cdn\_frontdoor\_health\_probe](#input\_enable\_cdn\_frontdoor\_health\_probe) | Enable CDN Front Door health probe | `bool` | `false` | no |
| <a name="input_enable_cdn_frontdoor_vdp_redirects"></a> [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 |
Expand Down
4 changes: 4 additions & 0 deletions terraform/container-apps-hosting.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions terraform/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
12 changes: 12 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 8d110cd

Please sign in to comment.