Skip to content

Commit e254600

Browse files
committed
fix terraform syntax error
1 parent 05a31d0 commit e254600

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • infrastructure/modules/container-apps

infrastructure/modules/container-apps/jobs.tf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,10 @@ module "db_setup" {
4040
}
4141

4242
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
4543

4644
source = "../dtos-devops-templates/infrastructure/modules/container-app-job"
47-
48-
for_each = local.scheduled_jobs
45+
# TODO: This should be on a scheduled job bases and NOT for the entire module
46+
for_each = var.enable_alerting ? local.scheduled_jobs : {}
4947

5048
name = "${var.app_short_name}-${each.value.job_short_name}-${var.environment}"
5149
container_app_environment_id = var.container_app_environment_id

0 commit comments

Comments
 (0)