From b8bbba811ae95857aedf4dd8c24f09087e0e00aa Mon Sep 17 00:00:00 2001
From: thrubovc <34124990+thrubovc@users.noreply.github.com>
Date: Fri, 21 Nov 2025 15:23:57 +0100
Subject: [PATCH] docs: Correct typo in `node_iam_role_arn` variable
description (#3591)
* fix: typo in node_iam_role_arn var description
* precommit
---
modules/karpenter/README.md | 2 +-
modules/karpenter/variables.tf | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/karpenter/README.md b/modules/karpenter/README.md
index d06cadf..a72f55a 100644
--- a/modules/karpenter/README.md
+++ b/modules/karpenter/README.md
@@ -159,7 +159,7 @@ No modules.
| [iam\_role\_use\_name\_prefix](#input\_iam\_role\_use\_name\_prefix) | Determines whether the name of the IAM role (`iam_role_name`) is used as a prefix | `bool` | `true` | no |
| [namespace](#input\_namespace) | Namespace to associate with the Karpenter Pod Identity | `string` | `"kube-system"` | no |
| [node\_iam\_role\_additional\_policies](#input\_node\_iam\_role\_additional\_policies) | Additional policies to be added to the IAM role | `map(string)` | `{}` | no |
-| [node\_iam\_role\_arn](#input\_node\_iam\_role\_arn) | Existing IAM role ARN for the IAM instance profile. Required if `create_iam_role` is set to `false` | `string` | `null` | no |
+| [node\_iam\_role\_arn](#input\_node\_iam\_role\_arn) | Existing IAM role ARN for the IAM instance profile. Required if `create_node_iam_role` is set to `false` | `string` | `null` | no |
| [node\_iam\_role\_attach\_cni\_policy](#input\_node\_iam\_role\_attach\_cni\_policy) | Whether to attach the `AmazonEKS_CNI_Policy`/`AmazonEKS_CNI_IPv6_Policy` IAM policy to the IAM IAM role. WARNING: If set `false` the permissions must be assigned to the `aws-node` DaemonSet pods via another method or nodes will not be able to join the cluster | `bool` | `true` | no |
| [node\_iam\_role\_description](#input\_node\_iam\_role\_description) | Description of the role | `string` | `null` | no |
| [node\_iam\_role\_max\_session\_duration](#input\_node\_iam\_role\_max\_session\_duration) | Maximum API session duration in seconds between 3600 and 43200 | `number` | `null` | no |
diff --git a/modules/karpenter/variables.tf b/modules/karpenter/variables.tf
index b814963..7e73a38 100644
--- a/modules/karpenter/variables.tf
+++ b/modules/karpenter/variables.tf
@@ -253,7 +253,7 @@ variable "cluster_ip_family" {
}
variable "node_iam_role_arn" {
- description = "Existing IAM role ARN for the IAM instance profile. Required if `create_iam_role` is set to `false`"
+ description = "Existing IAM role ARN for the IAM instance profile. Required if `create_node_iam_role` is set to `false`"
type = string
default = null
}