Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created July 14, 2022 14:44
Show Gist options
  • Select an option

  • Save KyMidd/e8c0527962a6441dea29478a4b6a1b7a to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/e8c0527962a6441dea29478a4b6a1b7a to your computer and use it in GitHub Desktop.
resource "aws_eks_node_group" "eks-node-group" {
cluster_name = aws_eks_cluster.aws_eks_cluster.name
node_group_name = "eks-node-group"
node_role_arn = aws_iam_role.eks_node_role.arn
subnet_ids = [
"subnet-111", #Private Subnet 1 ID
"subnet-222" #Private Subnet 2 ID
]
scaling_config {
desired_size = 1
max_size = 1
min_size = 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment