From c0db3a965f78dd6a4e235cac304ed4797dc70957 Mon Sep 17 00:00:00 2001 From: kylegalbraith Date: Thu, 25 May 2023 16:13:05 +0200 Subject: [PATCH] tag spec is a block, list so we have to define it twice --- main.tf | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/main.tf b/main.tf index eb412eb..2cddd4a 100644 --- a/main.tf +++ b/main.tf @@ -179,16 +179,15 @@ resource "aws_launch_template" "x86" { availability_zone = var.availability-zone } - tag_specifications = [ - { - resource_type = "instance" - tags = var.tags - }, - { - resource_type = "volume" - tags = var.tags - }, - ] + tag_specifications { + resource_type = "instance" + tags = var.tags + } + + tag_specifications { + resource_type = "volume" + tags = var.tags + } } resource "aws_launch_template" "arm" { @@ -226,16 +225,15 @@ resource "aws_launch_template" "arm" { availability_zone = var.availability-zone } - tag_specifications = [ - { - resource_type = "instance" - tags = var.tags - }, - { - resource_type = "volume" - tags = var.tags - }, - ] + tag_specifications { + resource_type = "instance" + tags = var.tags + } + + tag_specifications { + resource_type = "volume" + tags = var.tags + } } # cloud-agent ECS Task