OpsCanary
awseksPractitioner

Automate EKS Upgrades with AWS DevOps Agent and Kiro

5 min read AWS DevOps BlogSep 2, 2026Reviewed for accuracy
Share
PractitionerHands-on experience recommended

In today's fast-paced cloud environment, managing upgrades for your EKS clusters can be a daunting task. Planned Lifecycle Events (PLEs) signal when a managed service version is nearing the end of its support, and failing to act can lead to service disruptions. Automating these upgrades not only saves time but also enhances reliability and performance across your applications.

The automation pipeline kicks off when AWS Health publishes an AWS_EKS_PLANNED_LIFECYCLE_EVENT to the default Amazon EventBridge bus. An EventBridge rule named eks-health-planned-lifecycle matches this event and invokes the AWS Lambda function devops-agent-health-event. This function extracts critical information and directs the AWS DevOps Agent to utilize the eks-upgrade-planning skill. The agent then discovers the cluster topology, validates the version increment, checks addon compatibility, and determines the upgrade sequence. The output is a structured AWS CDK Change Spec. Following this, a second EventBridge rule triggers the Trigger Upgrade Lambda function, which retrieves the investigation's journal records and dispatches the eks-upgrade.yml GitHub Actions workflow via the GitHub API. This workflow validates the investigation output and installs Kiro CLI in headless mode to apply the necessary changes.

In production, it's crucial to understand the dependencies and the sequence of events in this automation. Ensure that your EventBridge rules are correctly configured to catch the relevant AWS Health events. Pay attention to the output from the AWS DevOps Agent; it contains vital information that must be followed precisely when applying changes. The command for Kiro CLI is straightforward but requires careful adherence to the instructions in the CDK Change Spec to avoid errors. Remember, this automation is designed to enhance your upgrade process, but it relies heavily on the correct setup of your AWS infrastructure and services.

Key takeaways

  • Utilize AWS Health events to trigger automated upgrade workflows.
  • Configure Amazon EventBridge rules to match specific lifecycle events.
  • Leverage AWS DevOps Agent to validate upgrade sequences and dependencies.
  • Apply changes using Kiro CLI with strict adherence to the CDK Change Spec.

Why it matters

Automating EKS upgrades reduces the risk of service outages due to unsupported versions, ensuring your applications run smoothly and efficiently. This proactive approach enhances overall system reliability.

Code examples

Bash
kiro-cli chat --no-interactive --trust-tools=read,write,glob,grep \
"Read kiro-cdk-instructions.md for context on the CDK patterns. Then read /tmp/cdk-change-spec.txt — it contains the validated CDK Change Spec extracted from the DevOps Agent investigation. Apply those values exactly. Modify lib/iteration3-stack.ts ONLY. Do NOT derive or guess version numbers — use only the values from the spec file. Make only the file edits — do not run any build or shell commands, and do not commit."

When NOT to use this

The official docs don't call out specific anti-patterns here. Use your judgment based on your scale and requirements.

Want the complete reference?

Read official docs

Test what you just learned

Quiz questions written from this article

Take the quiz →
DigitalOceanSponsor

Simple, affordable cloud — VMs, Kubernetes, and managed databases in minutes. Trusted by 600,000+ developers. Spin up a Droplet in 60 seconds.

Try DigitalOcean →

Get the daily digest

One email. 5 articles. Every morning.

No spam. Unsubscribe anytime.