AWS Builder Center
AWS EKS Version upgrade from 1.34 to 1.35 using Terraform

AWS EKS Version upgrade from 1.34 to 1.35 using Terraform

AWS EKS Version upgrade from 1.34 to 1.35 using Terraform along with AWS Addons and AWS Grafana

Series: AWS EKS Version Upgrade (8 articles)

  1. 1
    AWS EKS Version upgrade from 1.34 to 1.35 using Terraform This article
As standard support for AWS EKS version 1.34 ends on DEC 3rd, 2026. We have to upgrade our cluster to next version of AWS EKS Version which is 1.35. AWS charges $ 0.10 per hour per cluster in standard version. However, for managing a EKS Cluster in extended version it charges $ 0.60 per hour per cluster. There is additional cost of $350 per each EKS cluster per month for extended version. Additionally new version comes with more security updates hence it is beneficial and best practice to maintain our AWS EKS Clusters in standard version.

I am sharing my current implementation experience as we upgraded our AWS EKS version from 1.34 to 1.35 recently along with AWS Addons and Amazon Grafana. We are using Amazon EKS manged node group along with karpenter for our Implementation.

Our upgrade was hassle free with zero downtime as it is rolling update by default. This upgrade also helped us resolve multiple critical security vulnerabilities identified recently. we will see steps in detail.

IAC Changes done for EKS Version upgrade from 1.34 to 1.35


  • PRE-Validate the EKS current version.
aws eks describe-cluster --name sample --query cluster.version --output text
  • PRE-Validate EKS nodes.
kubectl get nodes
/*
aws ssm get-parameter --name /aws/service/eks/optimized-ami/<kubernetes-version>/<ami-typ>/recommended/image_id --region <region-code> --query "Parameter.Value" --output text

sample:

*/

aws ssm get-parameter --name /aws/service/eks/optimized-ami/1.35/amazon-linux-2023/x86_64/standard/recommended/image_id --region us-west-2 --query "Parameter.Value" --output text
  • Update the EKS version.
resource "aws_eks_cluster" "example" {
name = "sample"
version = "1.35"
}
  • Update image_id in aws_launch_template resource (update the AMI we identified above as image_id).
  • Update addon_version for each aws_eks_addon resource we want to update like vpc_cni , kube_proxy, coredns , etc. They are upgraded to following versions:
coredns = "v1.13.2-eksbuild.4"
vpc_cni = "v1.22.4-eksbuild.8"
kube_proxy = "v1.35.3-eksbuild.69"
ebs_csi = "v1.67.2-eksbuild.1"
s3_csi = "v2.9.1-eksbuild.1"


IAC changes for AWS Grafana version upgrade

We updated Amazon Grafana from version 10.4 to version 12.4. It was a two-step process.
We need to update Grafana Alerting parameter "UnifiedAlerting" as shown below as "enabled" in 10.4 version. Later after update we can upgrade to version 12.4 by updating the below variable "grafana_version" to 12.4. It was also a hassle-free update. Code Sample reference:  aws_grafana_workspace | Resources | hashicorp/aws | Terraform | Terraform Registry 

resource "aws_grafana_workspace" "example" {
account_access_type = "CURRENT_ACCOUNT"
authentication_providers = ["SAML"]
permission_type = "SERVICE_MANAGED"
role_arn = aws_iam_role.assume.arn
grafana_version = "10.4"
configuration = jsonencode(
{
"plugins" = {
"pluginAdminEnabled" = false
},
"unifiedAlerting" = {
"enabled" = true
}
}
)
}


Series: AWS EKS Version Upgrade (8 articles)

  1. 1
    AWS EKS Version upgrade from 1.34 to 1.35 using Terraform This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article