Skip to content

Commit 50a04f2

Browse files
authored
fix terraform syntax error (#455)
# What is the change? Fix terraform syntax error <!-- Describe the intended changes. --> # Why are we making this change? <!-- Why is this change required? What problem does it solve? -->
2 parents eb583c8 + 0f5694b commit 50a04f2

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)