From c0b77a263497032da9e20c6cb904399f798f41d8 Mon Sep 17 00:00:00 2001 From: Weston Bassler Date: Thu, 17 Oct 2019 14:41:56 -0400 Subject: [PATCH] initial commit to update root volume tags --- main.tf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.tf b/main.tf index eb2c8cc..770bc26 100644 --- a/main.tf +++ b/main.tf @@ -95,6 +95,9 @@ resource "aws_instance" "instance" { delete_on_termination = true } + volume_tags = "${merge(var.tags, map("Name", format("root-volume-${var.hostname_format}", (count.index + 1), local.region, local.cluster_name), + "Cluster", var.cluster_name))}" + user_data = "${var.user_data}" get_password_data = "${var.get_password_data}"