mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-18 14:59:38 +02:00
fix max_instance_lifetime for workers (#771)
* fix max_instance_lifetime for workers * update changelog * update changelog
This commit is contained in:
committed by
GitHub
parent
f465e55721
commit
2715b01e4e
@@ -14,6 +14,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
- Use correct policy arns for CN regions (cn-north-1, cn-northwest-1) (by @cofyc)
|
- Use correct policy arns for CN regions (cn-north-1, cn-northwest-1) (by @cofyc)
|
||||||
- Add support for ASG max instance lifetime (by @sidprak)
|
- Add support for ASG max instance lifetime (by @sidprak)
|
||||||
- Add `default_cooldown` and `health_check_grace_period` options to workers ASG (by @ArieLevs)
|
- Add `default_cooldown` and `health_check_grace_period` options to workers ASG (by @ArieLevs)
|
||||||
|
- Fix support for ASG max instance lifetime for workers (by @barryib)
|
||||||
|
|
||||||
# History
|
# History
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ resource "aws_autoscaling_group" "workers" {
|
|||||||
local.workers_group_defaults["termination_policies"]
|
local.workers_group_defaults["termination_policies"]
|
||||||
)
|
)
|
||||||
max_instance_lifetime = lookup(
|
max_instance_lifetime = lookup(
|
||||||
var.worker_groups_launch_template[count.index],
|
var.worker_groups[count.index],
|
||||||
"max_instance_lifetime",
|
"max_instance_lifetime",
|
||||||
local.workers_group_defaults["max_instance_lifetime"],
|
local.workers_group_defaults["max_instance_lifetime"],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user