Skip to content

Commit b3a90aa

Browse files
davidalgermax-rocket-internet
authored andcommitted
Ignore changes to desired_size of node_groups (#691)
* Ignore changes to desired_size of node_groups Resolves #681 * Update CHANGELOG.md
1 parent 0ee36d0 commit b3a90aa

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
1212
- Write your awesome change here (by @you)
1313
- Fix index reference on destroy for output `oidc_provider_arn` (@stevie-)
1414
- Add support for restricting access to the public API endpoint (@sidprak)
15+
- Add an `ignore_lifecycle` rule to prevent Terraform from scaling down ASG behind AWS EKS Managed Node Group (by @davidalger)
1516

1617
# History
1718

modules/node_groups/node_groups.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ resource "aws_eks_node_group" "workers" {
4545

4646
lifecycle {
4747
create_before_destroy = true
48+
ignore_changes = [scaling_config.0.desired_size]
4849
}
4950
}

0 commit comments

Comments
 (0)