From b9cde61215862bc925f375c6f4c878167f1f9983 Mon Sep 17 00:00:00 2001 From: Shubham Krishna Date: Mon, 29 Jan 2024 10:46:39 +0100 Subject: [PATCH] Add tag in packer sources --- infrastructure/ami/hcl2-files/sources.pkr.hcl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infrastructure/ami/hcl2-files/sources.pkr.hcl b/infrastructure/ami/hcl2-files/sources.pkr.hcl index 629f192d8..35f776e94 100644 --- a/infrastructure/ami/hcl2-files/sources.pkr.hcl +++ b/infrastructure/ami/hcl2-files/sources.pkr.hcl @@ -11,4 +11,7 @@ source "amazon-ebs" "ubuntu" { volume_type = "gp2" delete_on_termination = true } + tags = { + tag_name = var.tag_name + } } \ No newline at end of file