Skip to content

Commit 0eaf795

Browse files
bryantbiggsspr-mweber3
authored andcommitted
feat: Ensure all supported resources are tagged under tag_specifications on launch templates (terraform-aws-modules#2352)
Resolves undefined
1 parent 8ef74b0 commit 0eaf795

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/eks-managed-node-group/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ resource "aws_launch_template" "this" {
278278
ram_disk_id = var.ram_disk_id
279279

280280
dynamic "tag_specifications" {
281-
for_each = toset(["instance", "volume", "network-interface"])
281+
for_each = toset(["instance", "volume", "elastic-gpu", "network-interface", "spot-instances-request"])
282282

283283
content {
284284
resource_type = tag_specifications.key

modules/self-managed-node-group/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ resource "aws_launch_template" "this" {
365365
ram_disk_id = var.ram_disk_id
366366

367367
dynamic "tag_specifications" {
368-
for_each = toset(["instance", "volume", "network-interface"])
368+
for_each = toset(["instance", "volume", "elastic-gpu", "network-interface", "spot-instances-request"])
369369

370370
content {
371371
resource_type = tag_specifications.key

0 commit comments

Comments
 (0)