diff --git a/README.md b/README.md index ad36db7..4432cc5 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ No resources. | [cluster\_endpoint\_public\_access\_cidrs](#input\_cluster\_endpoint\_public\_access\_cidrs) | List of CIDR blocks which can access the Amazon EKS public API server endpoint | `list(string)` |
[| no | | [cluster\_name](#input\_cluster\_name) | Name of the EKS cluster | `string` | n/a | yes | | [cluster\_security\_group\_additional\_rules](#input\_cluster\_security\_group\_additional\_rules) | List of additional security group rules to add to the cluster security group created. Set `source_node_security_group = true` inside rules to set the `node_security_group` as source | `any` | `{}` | no | +| [cluster\_version](#input\_cluster\_version) | EKS cluster version | `string` | `"1.28"` | no | | [create\_cloudwatch\_log\_group](#input\_create\_cloudwatch\_log\_group) | Determines whether a log group is created by this module for the cluster logs. If not, AWS will automatically create one if logging is enabled | `bool` | `true` | no | | [eks\_managed\_node\_group\_defaults](#input\_eks\_managed\_node\_group\_defaults) | Managed node group defaults | `any` | `{}` | no | | [eks\_managed\_node\_groups](#input\_eks\_managed\_node\_groups) | Map of EKS managed node group definitions to create | `any` | `{}` | no | diff --git a/eks.tf b/eks.tf index b2fb466..458445b 100644 --- a/eks.tf +++ b/eks.tf @@ -6,7 +6,7 @@ module "aws-eks-kubernetes-cluster" { source = "terraform-aws-modules/eks/aws" version = "v19.17.2" cluster_name = var.cluster_name - cluster_version = "1.27" + cluster_version = var.cluster_version cluster_enabled_log_types = var.cluster_enabled_log_types cluster_additional_security_group_ids = var.cluster_additional_security_group_ids subnet_ids = var.subnet_ids diff --git a/variables.tf b/variables.tf index fda49d1..a9f06a1 100644 --- a/variables.tf +++ b/variables.tf @@ -45,6 +45,12 @@ variable "cluster_endpoint_public_access_cidrs" { default = ["0.0.0.0/0"] } +variable "cluster_version" { + description = "EKS cluster version" + type = string + default = "1.28" +} + ################################################################################ # CloudWatch Log Group ################################################################################
"0.0.0.0/0"
]