Creates a basic EKS Node Group with scaling and update configurations.

Terraform Template

resource "aws_eks_node_group" "example" {
  cluster_name = "aws_eks_cluster.example.name"
  depends_on = ["aws_iam_role_policy_attachment.example-AmazonEKSWorkerNodePolicy", "aws_iam_role_policy_attachment.example-AmazonEKS_CNI_Policy", "aws_iam_role_policy_attachment.example-AmazonEC2ContainerRegistryReadOnly"]
  node_group_name = "example"
  node_role_arn = "aws_iam_role.example.arn"

  scaling_config {
    desired_size = 1
    max_size = 2
    min_size = 1
  }
  subnet_ids = aws_subnet.example[*].id

  update_config {
    max_unavailable = 1
  }
}