From edb1b751913f612aa9e93891976ff677a3fee4fc Mon Sep 17 00:00:00 2001 From: matt <97546619+mattaltberg@users.noreply.github.com> Date: Mon, 4 Jul 2022 10:49:29 -0400 Subject: [PATCH] fix: Add default for tag lookup in job queue resources. (#2) --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 9a72fc9..525aa52 100644 --- a/main.tf +++ b/main.tf @@ -226,7 +226,7 @@ resource "aws_batch_job_queue" "this" { scheduling_policy_arn = try(each.value.scheduling_policy_arn, aws_batch_scheduling_policy.this[each.key].arn) compute_environments = [for env in aws_batch_compute_environment.this : env.arn] - tags = merge(var.tags, lookup(each.value, "tags")) + tags = merge(var.tags, lookup(each.value, "tags", {})) } ################################################################################ @@ -251,7 +251,7 @@ resource "aws_batch_scheduling_policy" "this" { } } - tags = merge(var.tags, lookup(each.value, "tags")) + tags = merge(var.tags, lookup(each.value, "tags", {})) } ################################################################################