mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-14 14:21:13 +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:
@@ -7,8 +7,11 @@ resource "random_pet" "node_groups" {
|
||||
keepers = {
|
||||
ami_type = lookup(each.value, "ami_type", null)
|
||||
disk_size = lookup(each.value, "disk_size", null)
|
||||
instance_type = each.value["instance_type"]
|
||||
capacity_type = lookup(each.value, "capacity_type", null)
|
||||
iam_role_arn = each.value["iam_role_arn"]
|
||||
instance_types = join("|", compact(
|
||||
lookup(each.value, "instance_types", [])
|
||||
))
|
||||
|
||||
key_name = each.value["key_name"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user