Configures an EKS Node Group to ignore changes in the desired size after initial setup.

Terraform Template

resource "aws_eks_node_group" "example" {

  lifecycle {
    ignore_changes = ["scaling_config[0].desired_size"]
  }

  scaling_config {
    desired_size = 2
  }
}