mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-12 05:21:33 +01:00
feat: Ensure all supported resources are tagged under tag_specifications on launch templates (#2352)
Resolves undefined
This commit is contained in:
@@ -270,7 +270,7 @@ resource "aws_launch_template" "this" {
|
|||||||
ram_disk_id = var.ram_disk_id
|
ram_disk_id = var.ram_disk_id
|
||||||
|
|
||||||
dynamic "tag_specifications" {
|
dynamic "tag_specifications" {
|
||||||
for_each = toset(["instance", "volume", "network-interface"])
|
for_each = toset(["instance", "volume", "elastic-gpu", "network-interface", "spot-instances-request"])
|
||||||
|
|
||||||
content {
|
content {
|
||||||
resource_type = tag_specifications.key
|
resource_type = tag_specifications.key
|
||||||
|
|||||||
@@ -364,7 +364,7 @@ resource "aws_launch_template" "this" {
|
|||||||
ram_disk_id = var.ram_disk_id
|
ram_disk_id = var.ram_disk_id
|
||||||
|
|
||||||
dynamic "tag_specifications" {
|
dynamic "tag_specifications" {
|
||||||
for_each = toset(["instance", "volume", "network-interface"])
|
for_each = toset(["instance", "volume", "elastic-gpu", "network-interface", "spot-instances-request"])
|
||||||
|
|
||||||
content {
|
content {
|
||||||
resource_type = tag_specifications.key
|
resource_type = tag_specifications.key
|
||||||
|
|||||||
Reference in New Issue
Block a user