From 0751a0ca04d6303015e8a9c2f917956ea00d184b Mon Sep 17 00:00:00 2001 From: Bryant Biggs Date: Sun, 18 Dec 2022 12:29:11 -0500 Subject: [PATCH] feat: Ensure all supported resources are tagged under `tag_specifications` on launch templates (#2352) Resolves undefined --- modules/eks-managed-node-group/main.tf | 2 +- modules/self-managed-node-group/main.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/eks-managed-node-group/main.tf b/modules/eks-managed-node-group/main.tf index b844533a..c59d553f 100644 --- a/modules/eks-managed-node-group/main.tf +++ b/modules/eks-managed-node-group/main.tf @@ -270,7 +270,7 @@ resource "aws_launch_template" "this" { ram_disk_id = var.ram_disk_id dynamic "tag_specifications" { - for_each = toset(["instance", "volume", "network-interface"]) + for_each = toset(["instance", "volume", "elastic-gpu", "network-interface", "spot-instances-request"]) content { resource_type = tag_specifications.key diff --git a/modules/self-managed-node-group/main.tf b/modules/self-managed-node-group/main.tf index 7632d246..10752fb7 100644 --- a/modules/self-managed-node-group/main.tf +++ b/modules/self-managed-node-group/main.tf @@ -364,7 +364,7 @@ resource "aws_launch_template" "this" { ram_disk_id = var.ram_disk_id dynamic "tag_specifications" { - for_each = toset(["instance", "volume", "network-interface"]) + for_each = toset(["instance", "volume", "elastic-gpu", "network-interface", "spot-instances-request"]) content { resource_type = tag_specifications.key