From 1ecdda412e8ce638b26ff15364aeb3127327dc1f Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Tue, 12 Sep 2023 21:11:59 +0100 Subject: [PATCH] Fix error when tags are not specified --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 3c6cfac..0817bf6 100644 --- a/main.tf +++ b/main.tf @@ -176,7 +176,7 @@ resource "aws_launch_template" "x86" { tag_specifications { resource_type = "instance" - tags = var.tags + tags = merge(var.tags, { "depot-connection" = var.connection-id }) } tag_specifications { @@ -217,7 +217,7 @@ resource "aws_launch_template" "arm" { tag_specifications { resource_type = "instance" - tags = var.tags + tags = merge(var.tags, { "depot-connection" = var.connection-id }) } tag_specifications {