I have a container_app_environment deployed with terraform and every time it seems that there are changes detected (specifically in the workload_configuration)
resource "azurerm_container_app_environment" "env" {
name = var.managed_environment_name
location = var.location
resource_group_name = var.resource_group_name
infrastructure_subnet_id = var.infrastructure_subnet_id
internal_load_balancer_enabled = false
log_analytics_workspace_id = var.workspace_id
workload_profile {
name = "Consumption"
workload_profile_type = "Consumption"
minimum_count = 0
maximum_count = 8
}
tags = var.tags
lifecycle {
ignore_changes = [tags]
}
}
Terraform output:
- workload_profile {
- maximum_count = 0 -> null
- minimum_count = 0 -> null
- name = "Consumption" -> null
- workload_profile_type = "Consumption" -> null
}
+ workload_profile {
+ maximum_count = 8
+ minimum_count = 0
+ name = "Consumption"
+ workload_profile_type = "Consumption"
}
Any idea how to solve this?