Skip to content

Commit

Permalink
Added Container Apps Workload Profiled aztfmod#1947
Browse files Browse the repository at this point in the history
  • Loading branch information
Darren Hull committed Mar 18, 2024
1 parent 61f82e1 commit 506b1af
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ container_app_environments = {
}
internal_load_balancer_enabled = true
zone_redundancy_enabled = true
workload_profile {
name = "caetest"
workload_profile_type = "D4"
minimum_count = 0
maximum_count = 1
}

tags = {
environment = "testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,13 @@ resource "azurerm_container_app_environment" "cae" {
internal_load_balancer_enabled = try(var.settings.internal_load_balancer_enabled, null)
zone_redundancy_enabled = try(var.settings.zone_redundancy_enabled, null)
tags = merge(local.tags, try(var.settings.tags, null))
dynamic "workload_profile" {
for_each = var.settings.workload_profile
content {
name = workload_profile.value.name
workload_profile_type = workload_profile.value.workload_profile_type
minimum_count = workload_profile.value.minimum_count
maximum_count = workload_profile.value.maximum_count
}
}
}

0 comments on commit 506b1af

Please sign in to comment.