Skip to content

Commit 85bb1a0

Browse files
authored
feat: Add instance_metadata_tags attribute to launch templates (#1781)
1 parent aba9400 commit 85bb1a0

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

examples/eks_managed_node_group/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ module "eks" {
225225
http_endpoint = "enabled"
226226
http_tokens = "required"
227227
http_put_response_hop_limit = 2
228+
instance_metadata_tags = "enabled"
228229
}
229230

230231
create_iam_role = true

examples/self_managed_node_group/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ module "eks" {
138138
http_endpoint = "enabled"
139139
http_tokens = "required"
140140
http_put_response_hop_limit = 2
141+
instance_metadata_tags = "enabled"
141142
}
142143

143144
create_iam_role = true

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ resource "aws_launch_template" "this" {
183183
http_tokens = lookup(metadata_options.value, "http_tokens", null)
184184
http_put_response_hop_limit = lookup(metadata_options.value, "http_put_response_hop_limit", null)
185185
http_protocol_ipv6 = lookup(metadata_options.value, "http_protocol_ipv6", null)
186+
instance_metadata_tags = lookup(metadata_options.value, "instance_metadata_tags", null)
186187
}
187188
}
188189

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ resource "aws_launch_template" "this" {
182182
http_tokens = lookup(metadata_options.value, "http_tokens", null)
183183
http_put_response_hop_limit = lookup(metadata_options.value, "http_put_response_hop_limit", null)
184184
http_protocol_ipv6 = lookup(metadata_options.value, "http_protocol_ipv6", null)
185+
instance_metadata_tags = lookup(metadata_options.value, "instance_metadata_tags", null)
185186
}
186187
}
187188

node_groups.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ locals {
33
http_endpoint = "enabled"
44
http_tokens = "required"
55
http_put_response_hop_limit = 2
6+
instance_metadata_tags = "enabled"
67
}
78
}
89

0 commit comments

Comments
 (0)