mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-17 00:57:28 +01:00
feat: Add the SPOT support for Managed Node Groups (#1129)
BREAKING CHANGES: To add add SPOT support for MNG, the `instance_type` is now a list and renamed as `instance_types`. This will probably rebuild existing Managed Node Groups.
This commit is contained in:
@@ -15,8 +15,9 @@ 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"] != null ? [] : [each.value["instance_type"]]
|
||||
instance_types = lookup(each.value, "instance_types", null)
|
||||
release_version = lookup(each.value, "ami_release_version", null)
|
||||
capacity_type = lookup(each.value, "capacity_type", null)
|
||||
|
||||
dynamic "remote_access" {
|
||||
for_each = each.value["key_name"] != "" ? [{
|
||||
|
||||
Reference in New Issue
Block a user