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

fix: Fixed launch template version infinite plan issue and improved rolling updates (#1447)

This commit is contained in:
Jaime Hidalgo García
2021-08-25 16:54:29 +02:00
committed by GitHub
parent 4f683ab776
commit d17007b542
4 changed files with 7 additions and 3 deletions
+4 -2
View File
@@ -47,8 +47,10 @@ 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 = each.value["launch_template_version"]
id = aws_launch_template.workers[each.key].id
version = each.value["launch_template_version"] == "$Latest" ? aws_launch_template.workers[each.key].latest_version : (
each.value["launch_template_version"] == "$Default" ? aws_launch_template.workers[each.key].default_version : each.value["launch_template_version"]
)
}] : []
content {