From f26d7b08911166950076c002e2585147d6e96364 Mon Sep 17 00:00:00 2001 From: Mohamed Salah Bounabi Date: Wed, 24 Nov 2021 10:55:09 -0500 Subject: [PATCH] exclude desired_capacity from the ignore lifecycle I'd like to be able to apply changes on min and max capacity without being impacted by the desired_capacity value. Currently TF is raising an error if we try to set the min capacity to higher value than the actual desired capacity --- modules/node_groups/main.tf | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/node_groups/main.tf b/modules/node_groups/main.tf index 75e6209730..069c1a3b0e 100644 --- a/modules/node_groups/main.tf +++ b/modules/node_groups/main.tf @@ -99,7 +99,6 @@ resource "aws_eks_node_group" "workers" { lifecycle { create_before_destroy = true - ignore_changes = [scaling_config[0].desired_size] } }