mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-16 16:47:20 +01:00
fix: Change the default launch_template_id to null for Managed Node Groups (#1088)
This commit is contained in:
committed by
GitHub
parent
bba7c151c8
commit
571da60aea
@@ -15,7 +15,7 @@ resource "aws_eks_node_group" "workers" {
|
||||
|
||||
ami_type = lookup(each.value, "ami_type", null)
|
||||
disk_size = lookup(each.value, "disk_size", null)
|
||||
instance_types = each.value["launch_template_id"] != "" ? [] : [each.value["instance_type"]]
|
||||
instance_types = each.value["launch_template_id"] != null ? [] : [each.value["instance_type"]]
|
||||
release_version = lookup(each.value, "ami_release_version", null)
|
||||
|
||||
dynamic "remote_access" {
|
||||
@@ -31,7 +31,7 @@ resource "aws_eks_node_group" "workers" {
|
||||
}
|
||||
|
||||
dynamic "launch_template" {
|
||||
for_each = each.value["launch_template_id"] != "" ? [{
|
||||
for_each = each.value["launch_template_id"] != null ? [{
|
||||
id = each.value["launch_template_id"]
|
||||
version = each.value["launch_template_version"]
|
||||
}] : []
|
||||
|
||||
Reference in New Issue
Block a user