From fb2f737134e3de69d87a8bb34fed3fd7fe7c9403 Mon Sep 17 00:00:00 2001 From: "David J. M. Karlsen" Date: Fri, 22 Dec 2023 00:43:08 +0100 Subject: [PATCH 1/2] support workload profiles Signed-off-by: David J. M. Karlsen --- main.tf | 1 + variables.tf | 7 ++++--- versions.tf | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/main.tf b/main.tf index 21a7e9e..e32a785 100644 --- a/main.tf +++ b/main.tf @@ -94,6 +94,7 @@ resource "azurerm_container_app" "container_app" { name = each.value.name resource_group_name = var.resource_group_name revision_mode = each.value.revision_mode + workload_profile_name = each.value.workload_profile_name tags = each.value.tags template { diff --git a/variables.tf b/variables.tf index b5b619e..f2851ac 100644 --- a/variables.tf +++ b/variables.tf @@ -6,9 +6,10 @@ variable "container_app_environment_name" { variable "container_apps" { type = map(object({ - name = string - tags = optional(map(string)) - revision_mode = string + name = string + tags = optional(map(string)) + revision_mode = string + workload_profile_name = optional(string, "Consumption") template = object({ containers = set(object({ diff --git a/versions.tf b/versions.tf index 8e6fcee..fe83d9c 100644 --- a/versions.tf +++ b/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = ">= 3.11, < 4.0" + version = ">= 3.85, < 4.0" } } } \ No newline at end of file From b57fdf1b648775febeb56cdd010eb1f13d62cf12 Mon Sep 17 00:00:00 2001 From: "David J. M. Karlsen" Date: Fri, 22 Dec 2023 11:53:59 +0100 Subject: [PATCH 2/2] Don't have a default --- variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables.tf b/variables.tf index f2851ac..87a6a98 100644 --- a/variables.tf +++ b/variables.tf @@ -9,7 +9,7 @@ variable "container_apps" { name = string tags = optional(map(string)) revision_mode = string - workload_profile_name = optional(string, "Consumption") + workload_profile_name = optional(string) template = object({ containers = set(object({