From 493ddc4ece1b8006f31c9181929d8e3848169a19 Mon Sep 17 00:00:00 2001 From: Orla Dunlop <94905017+odunlop@users.noreply.github.com> Date: Tue, 27 Aug 2024 17:56:02 +0100 Subject: [PATCH] chore(ec2): add tagging to launch template (#113) Signed-off-by: Orla Dunlop --- modules/ec2/main.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/ec2/main.tf b/modules/ec2/main.tf index 17fe90f..fa98476 100644 --- a/modules/ec2/main.tf +++ b/modules/ec2/main.tf @@ -189,6 +189,16 @@ resource "aws_launch_template" "kong" { encrypted = true } } + + tag_specifications { + resource_type = "instance" + tags = var.tags_asg + } + + tag_specifications { + resource_type = "volume" + tags = var.tags_asg + } lifecycle { create_before_destroy = true