From 816cad6812968f752f98930eb3a73a38df084a68 Mon Sep 17 00:00:00 2001 From: Bryant Biggs Date: Wed, 12 Jun 2024 15:51:49 -0400 Subject: [PATCH] chore: Update self-managed example to use AL2023 --- .pre-commit-config.yaml | 2 +- self-managed-node-group/eks_default.tf | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7104885..ae3d6ed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: v1.90.0 + rev: v1.91.0 hooks: - id: terraform_fmt - id: terraform_validate diff --git a/self-managed-node-group/eks_default.tf b/self-managed-node-group/eks_default.tf index 26182d3..3d5fbfd 100644 --- a/self-managed-node-group/eks_default.tf +++ b/self-managed-node-group/eks_default.tf @@ -3,9 +3,10 @@ module "eks_default" { version = "~> 20.0" cluster_name = "${local.name}-default" - cluster_version = "1.20" + cluster_version = "1.30" - cluster_endpoint_public_access = true + enable_cluster_creator_admin_permissions = true + cluster_endpoint_public_access = true # EKS Addons cluster_addons = { @@ -21,9 +22,11 @@ module "eks_default" { default = { instance_type = "m5.large" - min_size = 1 + ami_type = "AL2023_x86_64_STANDARD" + + min_size = 2 max_size = 3 - desired_size = 1 + desired_size = 2 } }