feat: Add support for ASG Warm Pools (#1310)

This commit is contained in:
Sergiu Plotnicu
2021-04-20 00:05:06 +03:00
committed by GitHub
parent fb5939314a
commit 2549408803
3 changed files with 21 additions and 0 deletions

View File

@@ -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(
[