1
0
mirror of https://github.com/terraform-aws-modules/terraform-aws-eks.git synced 2025-09-09 19:32:58 +08:00

feat: Add metadata_options for node_groups (#1485)

This commit is contained in:
Maxime Brunet
2021-09-08 10:24:47 -07:00
committed by GitHub
parent 95237e9e9e
commit a1d959edef
3 changed files with 37 additions and 25 deletions
+6
View File
@@ -77,6 +77,12 @@ resource "aws_launch_template" "workers" {
key_name = lookup(each.value, "key_name", null)
metadata_options {
http_endpoint = lookup(each.value, "metadata_http_endpoint", null)
http_tokens = lookup(each.value, "metadata_http_tokens", null)
http_put_response_hop_limit = lookup(each.value, "metadata_http_put_response_hop_limit", null)
}
# Supplying custom tags to EKS instances is another use-case for LaunchTemplates
tag_specifications {
resource_type = "instance"