feat: Allow to choose launch template version for Managed Node Groups when create_launch_template is set to true (#1419)

This commit is contained in:
Kevin Lefevre
2021-06-04 00:07:03 +02:00
committed by GitHub
parent 1e2c32430f
commit 4c1f272e29

View File

@@ -48,7 +48,7 @@ resource "aws_eks_node_group" "workers" {
dynamic "launch_template" {
for_each = each.value["launch_template_id"] == null && each.value["create_launch_template"] ? [{
id = aws_launch_template.workers[each.key].id
version = aws_launch_template.workers[each.key].latest_version
version = each.value["launch_template_version"]
}] : []
content {