mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-11-16 15:41:02 +01:00
fix: Correct capacity_reservation_target within launch templates of both EKS and self managed node groups (#1979)
This commit is contained in:
1 parent
6d7245621f
commit
381144e3bb
5 files changed
+18
-3
No files matched your search
@@ -94,7 +94,7 @@ resource "aws_launch_template" "this" {
|
||||
capacity_reservation_preference = lookup(capacity_reservation_specification.value, "capacity_reservation_preference", null)
|
||||
|
||||
dynamic "capacity_reservation_target" {
|
||||
for_each = lookup(capacity_reservation_specification.value, "capacity_reservation_target", [])
|
||||
for_each = try([capacity_reservation_specification.value.capacity_reservation_target], [])
|
||||
content {
|
||||
capacity_reservation_id = lookup(capacity_reservation_target.value, "capacity_reservation_id", null)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user