mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-24 18:31:09 +01:00
feat: Add support for ASG Warm Pools (#1310)
This commit is contained in:
10
workers.tf
10
workers.tf
@@ -112,6 +112,16 @@ resource "aws_autoscaling_group" "workers" {
|
||||
}
|
||||
}
|
||||
|
||||
dynamic "warm_pool" {
|
||||
for_each = lookup(var.worker_groups[count.index], "warm_pool", null) != null ? [lookup(var.worker_groups[count.index], "warm_pool")] : []
|
||||
|
||||
content {
|
||||
pool_state = lookup(warm_pool.value, "pool_state", null)
|
||||
min_size = lookup(warm_pool.value, "min_size", null)
|
||||
max_group_prepared_capacity = lookup(warm_pool.value, "max_group_prepared_capacity", null)
|
||||
}
|
||||
}
|
||||
|
||||
dynamic "tag" {
|
||||
for_each = concat(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user