diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 00b113536e..fc21bc9c25 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.92.0
+ rev: v1.92.1
hooks:
- id: terraform_fmt
- id: terraform_docs
diff --git a/README.md b/README.md
index 018a39fb5d..6826371bae 100644
--- a/README.md
+++ b/README.md
@@ -176,7 +176,7 @@ We are grateful to the community for contributing bugfixes and improvements! Ple
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.3.2 |
-| [aws](#requirement\_aws) | >= 5.58 |
+| [aws](#requirement\_aws) | >= 5.61 |
| [time](#requirement\_time) | >= 0.9 |
| [tls](#requirement\_tls) | >= 3.0 |
@@ -184,7 +184,7 @@ We are grateful to the community for contributing bugfixes and improvements! Ple
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.58 |
+| [aws](#provider\_aws) | >= 5.61 |
| [time](#provider\_time) | >= 0.9 |
| [tls](#provider\_tls) | >= 3.0 |
@@ -267,6 +267,7 @@ We are grateful to the community for contributing bugfixes and improvements! Ple
| [cluster\_service\_ipv6\_cidr](#input\_cluster\_service\_ipv6\_cidr) | The CIDR block to assign Kubernetes pod and service IP addresses from if `ipv6` was specified when the cluster was created. Kubernetes assigns service addresses from the unique local address range (fc00::/7) because you can't specify a custom IPv6 CIDR block when you create the cluster | `string` | `null` | no |
| [cluster\_tags](#input\_cluster\_tags) | A map of additional tags to add to the cluster | `map(string)` | `{}` | no |
| [cluster\_timeouts](#input\_cluster\_timeouts) | Create, update, and delete timeout configurations for the cluster | `map(string)` | `{}` | no |
+| [cluster\_upgrade\_policy](#input\_cluster\_upgrade\_policy) | Configuration block for the cluster upgrade policy | `any` | `{}` | no |
| [cluster\_version](#input\_cluster\_version) | Kubernetes `.` version to use for the EKS cluster (i.e.: `1.27`) | `string` | `null` | no |
| [control\_plane\_subnet\_ids](#input\_control\_plane\_subnet\_ids) | A list of subnet IDs where the EKS cluster control plane (ENIs) will be provisioned. Used for expanding the pool of subnets used by nodes/node groups without replacing the EKS control plane | `list(string)` | `[]` | no |
| [create](#input\_create) | Controls if resources should be created (affects nearly all resources) | `bool` | `true` | no |
diff --git a/examples/eks-managed-node-group/versions.tf b/examples/eks-managed-node-group/versions.tf
index ad809927fc..5bfe6da389 100644
--- a/examples/eks-managed-node-group/versions.tf
+++ b/examples/eks-managed-node-group/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.58"
+ version = ">= 5.61"
}
}
}
diff --git a/examples/karpenter/README.md b/examples/karpenter/README.md
index 841f512017..e6b8a1e333 100644
--- a/examples/karpenter/README.md
+++ b/examples/karpenter/README.md
@@ -89,7 +89,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.3.2 |
-| [aws](#requirement\_aws) | >= 5.58 |
+| [aws](#requirement\_aws) | >= 5.61 |
| [helm](#requirement\_helm) | >= 2.7 |
| [kubectl](#requirement\_kubectl) | >= 2.0 |
@@ -97,8 +97,8 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.58 |
-| [aws.virginia](#provider\_aws.virginia) | >= 5.58 |
+| [aws](#provider\_aws) | >= 5.61 |
+| [aws.virginia](#provider\_aws.virginia) | >= 5.61 |
| [helm](#provider\_helm) | >= 2.7 |
| [kubectl](#provider\_kubectl) | >= 2.0 |
diff --git a/examples/karpenter/versions.tf b/examples/karpenter/versions.tf
index 1c82fb5584..8a0624ba0d 100644
--- a/examples/karpenter/versions.tf
+++ b/examples/karpenter/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.58"
+ version = ">= 5.61"
}
helm = {
source = "hashicorp/helm"
diff --git a/examples/outposts/README.md b/examples/outposts/README.md
index 5f2b1f4038..1dcab73cca 100644
--- a/examples/outposts/README.md
+++ b/examples/outposts/README.md
@@ -46,14 +46,14 @@ terraform destroy --auto-approve
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.3.2 |
-| [aws](#requirement\_aws) | >= 5.58 |
+| [aws](#requirement\_aws) | >= 5.61 |
| [kubernetes](#requirement\_kubernetes) | >= 2.20 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.58 |
+| [aws](#provider\_aws) | >= 5.61 |
| [kubernetes](#provider\_kubernetes) | >= 2.20 |
## Modules
diff --git a/examples/outposts/prerequisites/versions.tf b/examples/outposts/prerequisites/versions.tf
index ad809927fc..5bfe6da389 100644
--- a/examples/outposts/prerequisites/versions.tf
+++ b/examples/outposts/prerequisites/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.58"
+ version = ">= 5.61"
}
}
}
diff --git a/examples/outposts/versions.tf b/examples/outposts/versions.tf
index 4a5137beff..9836b3a468 100644
--- a/examples/outposts/versions.tf
+++ b/examples/outposts/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.58"
+ version = ">= 5.61"
}
kubernetes = {
source = "hashicorp/kubernetes"
diff --git a/examples/self-managed-node-group/versions.tf b/examples/self-managed-node-group/versions.tf
index ad809927fc..5bfe6da389 100644
--- a/examples/self-managed-node-group/versions.tf
+++ b/examples/self-managed-node-group/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.58"
+ version = ">= 5.61"
}
}
}
diff --git a/main.tf b/main.tf
index 04cc950b98..47bb55a2cf 100644
--- a/main.tf
+++ b/main.tf
@@ -84,6 +84,14 @@ resource "aws_eks_cluster" "this" {
}
}
+ dynamic "upgrade_policy" {
+ for_each = length(var.cluster_upgrade_policy) > 0 ? [var.cluster_upgrade_policy] : []
+
+ content {
+ support_type = try(upgrade_policy.value.support_type, null)
+ }
+ }
+
tags = merge(
{ terraform-aws-modules = "eks" },
var.tags,
diff --git a/modules/eks-managed-node-group/README.md b/modules/eks-managed-node-group/README.md
index 22def67a0e..46e36c06ac 100644
--- a/modules/eks-managed-node-group/README.md
+++ b/modules/eks-managed-node-group/README.md
@@ -64,13 +64,13 @@ module "eks_managed_node_group" {
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.3.2 |
-| [aws](#requirement\_aws) | >= 5.58 |
+| [aws](#requirement\_aws) | >= 5.61 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.58 |
+| [aws](#provider\_aws) | >= 5.61 |
## Modules
diff --git a/modules/eks-managed-node-group/versions.tf b/modules/eks-managed-node-group/versions.tf
index ad809927fc..5bfe6da389 100644
--- a/modules/eks-managed-node-group/versions.tf
+++ b/modules/eks-managed-node-group/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.58"
+ version = ">= 5.61"
}
}
}
diff --git a/modules/fargate-profile/README.md b/modules/fargate-profile/README.md
index 3aa71e8027..b1ee9e0ade 100644
--- a/modules/fargate-profile/README.md
+++ b/modules/fargate-profile/README.md
@@ -29,13 +29,13 @@ module "fargate_profile" {
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.3.2 |
-| [aws](#requirement\_aws) | >= 5.58 |
+| [aws](#requirement\_aws) | >= 5.61 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.58 |
+| [aws](#provider\_aws) | >= 5.61 |
## Modules
diff --git a/modules/fargate-profile/versions.tf b/modules/fargate-profile/versions.tf
index ad809927fc..5bfe6da389 100644
--- a/modules/fargate-profile/versions.tf
+++ b/modules/fargate-profile/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.58"
+ version = ">= 5.61"
}
}
}
diff --git a/modules/karpenter/README.md b/modules/karpenter/README.md
index 4528dd40c5..1bcf514f47 100644
--- a/modules/karpenter/README.md
+++ b/modules/karpenter/README.md
@@ -86,13 +86,13 @@ module "karpenter" {
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.3.2 |
-| [aws](#requirement\_aws) | >= 5.58 |
+| [aws](#requirement\_aws) | >= 5.61 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.58 |
+| [aws](#provider\_aws) | >= 5.61 |
## Modules
diff --git a/modules/karpenter/versions.tf b/modules/karpenter/versions.tf
index ad809927fc..5bfe6da389 100644
--- a/modules/karpenter/versions.tf
+++ b/modules/karpenter/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.58"
+ version = ">= 5.61"
}
}
}
diff --git a/modules/self-managed-node-group/README.md b/modules/self-managed-node-group/README.md
index 0f45ddf244..48662aabad 100644
--- a/modules/self-managed-node-group/README.md
+++ b/modules/self-managed-node-group/README.md
@@ -43,13 +43,13 @@ module "self_managed_node_group" {
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.3.2 |
-| [aws](#requirement\_aws) | >= 5.58 |
+| [aws](#requirement\_aws) | >= 5.61 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.58 |
+| [aws](#provider\_aws) | >= 5.61 |
## Modules
diff --git a/modules/self-managed-node-group/versions.tf b/modules/self-managed-node-group/versions.tf
index ad809927fc..5bfe6da389 100644
--- a/modules/self-managed-node-group/versions.tf
+++ b/modules/self-managed-node-group/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.58"
+ version = ">= 5.61"
}
}
}
diff --git a/tests/eks-managed-node-group/README.md b/tests/eks-managed-node-group/README.md
index f9ffad745d..8a0bfb485a 100644
--- a/tests/eks-managed-node-group/README.md
+++ b/tests/eks-managed-node-group/README.md
@@ -18,13 +18,13 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.3.2 |
-| [aws](#requirement\_aws) | >= 5.58 |
+| [aws](#requirement\_aws) | >= 5.61 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.58 |
+| [aws](#provider\_aws) | >= 5.61 |
## Modules
diff --git a/tests/eks-managed-node-group/main.tf b/tests/eks-managed-node-group/main.tf
index 654f57b7a8..2cca15db06 100644
--- a/tests/eks-managed-node-group/main.tf
+++ b/tests/eks-managed-node-group/main.tf
@@ -7,7 +7,7 @@ data "aws_availability_zones" "available" {}
locals {
name = "ex-${replace(basename(path.cwd), "_", "-")}"
- cluster_version = "1.29"
+ cluster_version = "1.30"
region = "eu-west-1"
vpc_cidr = "10.0.0.0/16"
@@ -61,6 +61,10 @@ module "eks" {
}
}
+ cluster_upgrade_policy = {
+ support_type = "STANDARD"
+ }
+
vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnets
control_plane_subnet_ids = module.vpc.intra_subnets
diff --git a/tests/eks-managed-node-group/versions.tf b/tests/eks-managed-node-group/versions.tf
index ad809927fc..5bfe6da389 100644
--- a/tests/eks-managed-node-group/versions.tf
+++ b/tests/eks-managed-node-group/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.58"
+ version = ">= 5.61"
}
}
}
diff --git a/tests/fargate-profile/README.md b/tests/fargate-profile/README.md
index 34728d2236..cb0fa88208 100644
--- a/tests/fargate-profile/README.md
+++ b/tests/fargate-profile/README.md
@@ -18,13 +18,13 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.3.2 |
-| [aws](#requirement\_aws) | >= 5.58 |
+| [aws](#requirement\_aws) | >= 5.61 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.58 |
+| [aws](#provider\_aws) | >= 5.61 |
## Modules
diff --git a/tests/fargate-profile/versions.tf b/tests/fargate-profile/versions.tf
index ad809927fc..5bfe6da389 100644
--- a/tests/fargate-profile/versions.tf
+++ b/tests/fargate-profile/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.58"
+ version = ">= 5.61"
}
}
}
diff --git a/tests/self-managed-node-group/README.md b/tests/self-managed-node-group/README.md
index 52b999ee83..c6eb533114 100644
--- a/tests/self-managed-node-group/README.md
+++ b/tests/self-managed-node-group/README.md
@@ -18,13 +18,13 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.3.2 |
-| [aws](#requirement\_aws) | >= 5.58 |
+| [aws](#requirement\_aws) | >= 5.61 |
## Providers
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | >= 5.58 |
+| [aws](#provider\_aws) | >= 5.61 |
## Modules
diff --git a/tests/self-managed-node-group/versions.tf b/tests/self-managed-node-group/versions.tf
index ad809927fc..5bfe6da389 100644
--- a/tests/self-managed-node-group/versions.tf
+++ b/tests/self-managed-node-group/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.58"
+ version = ">= 5.61"
}
}
}
diff --git a/variables.tf b/variables.tf
index 8db1db1c9a..420248c744 100644
--- a/variables.tf
+++ b/variables.tf
@@ -44,6 +44,12 @@ variable "authentication_mode" {
default = "API_AND_CONFIG_MAP"
}
+variable "cluster_upgrade_policy" {
+ description = "Configuration block for the cluster upgrade policy"
+ type = any
+ default = {}
+}
+
variable "cluster_additional_security_group_ids" {
description = "List of additional, externally created security group IDs to attach to the cluster control plane"
type = list(string)
diff --git a/versions.tf b/versions.tf
index a9b4a234c6..00d8754704 100644
--- a/versions.tf
+++ b/versions.tf
@@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
- version = ">= 5.58"
+ version = ">= 5.61"
}
tls = {
source = "hashicorp/tls"