We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05a31d0 commit e254600Copy full SHA for e254600
1 file changed
infrastructure/modules/container-apps/jobs.tf
@@ -40,12 +40,10 @@ module "db_setup" {
40
}
41
42
module "scheduled_jobs" {
43
- # TODO: This should be on a scheduled job bases and NOT for the entire module
44
- count = var.enable_alerting ? 1 : 0
45
46
source = "../dtos-devops-templates/infrastructure/modules/container-app-job"
47
-
48
- for_each = local.scheduled_jobs
+ # TODO: This should be on a scheduled job bases and NOT for the entire module
+ for_each = var.enable_alerting ? local.scheduled_jobs : {}
49
50
name = "${var.app_short_name}-${each.value.job_short_name}-${var.environment}"
51
container_app_environment_id = var.container_app_environment_id
0 commit comments