From ee69df23d5184ea58d0e3057ddea1b520b809180 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Tue, 16 Jun 2026 15:57:10 -0400 Subject: [PATCH] fix var --- README.md | 2 +- main.tf | 3 +-- variables.tf | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 433db45..d0f3fdd 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ The module deploys Karpenter needed AWS resources, namely in IAM. It copies the | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [account\_id](#input\_account\_id) | aws account number | `string` | `""` | no | -| [ami\_type](#input\_ami\_type) | AMI type to use for the Karpenter node group | `string` | `"AL2023_x86_64"` | no | +| [ami\_type](#input\_ami\_type) | AMI type to use for the Karpenter node group | `string` | `"AL2023_x86_64_STANDARD"` | no | | [cluster\_endpoint](#input\_cluster\_endpoint) | Endpoint for your Kubernetes API server | `string` | n/a | yes | | [cluster\_name](#input\_cluster\_name) | EKS cluster name name component used through out the EKS cluster describing its purpose (ex: dice-dev) | `string` | n/a | yes | | [create\_spot\_service\_linked\_role](#input\_create\_spot\_service\_linked\_role) | Whether to create the service-linked role for EC2 Spot (required for Karpenter spot instances) | `bool` | `false` | no | diff --git a/main.tf b/main.tf index 0c4692c..6456515 100644 --- a/main.tf +++ b/main.tf @@ -1,6 +1,6 @@ locals { ami_type_family = upper(split("_", var.ami_type)[0]) - amd_ami_family = local.ami_type_family == "BOTTLEROCKET" ? "Bottlerocket" : local.ami_type_family + amd_ami_family = local.ami_type_family amd_ami_alias = lower(format("%v@latest", local.amd_ami_family)) # Calculate the role name with prefix @@ -18,7 +18,6 @@ locals { rule_name_prefix = length(local.rule_name_raw) > local.max_rule_name_length ? substr(local.rule_name_raw, 0, local.max_rule_name_length) : local.rule_name_raw queue_name = format("%v%v", local.prefixes["eks-queue"], var.cluster_name) subnet_ids = try(tolist(var.subnets), []) - } # Replicating from here: https://github.e.it.census.gov/SCT-Engineering/terraform-aws-eks/tree/master/modules/karpenter diff --git a/variables.tf b/variables.tf index 86661f8..ec5f5ce 100644 --- a/variables.tf +++ b/variables.tf @@ -101,5 +101,5 @@ variable "create_spot_service_linked_role" { variable "ami_type" { description = "AMI type to use for the Karpenter node group" type = string - default = "AL2023_x86_64" + default = "AL2023_x86_64_STANDARD" }