From 2715b01e4e3979070af9faf7d9763e4b529a9121 Mon Sep 17 00:00:00 2001 From: "Thierno IB. BARRY" Date: Tue, 10 Mar 2020 22:01:01 +0100 Subject: [PATCH] fix max_instance_lifetime for workers (#771) * fix max_instance_lifetime for workers * update changelog * update changelog --- CHANGELOG.md | 1 + workers.tf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 983081f..13f79d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) - Add support for ASG max instance lifetime (by @sidprak) - 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 diff --git a/workers.tf b/workers.tf index 66a1951..ce2b27c 100644 --- a/workers.tf +++ b/workers.tf @@ -74,7 +74,7 @@ resource "aws_autoscaling_group" "workers" { local.workers_group_defaults["termination_policies"] ) max_instance_lifetime = lookup( - var.worker_groups_launch_template[count.index], + var.worker_groups[count.index], "max_instance_lifetime", local.workers_group_defaults["max_instance_lifetime"], )