Skip to content

Monitor AWS RDS and EKS version end-of-support with AWS DevOps Agent

12 minute read
Content level: Advanced
0

This article shows you how to use AWS DevOps Agent to build an automated end-of-support monitoring pipeline for Amazon RDS engine versions and Amazon EKS Kubernetes versions. It walks through creating a custom scheduled agent that discovers resources across multiple accounts and regions, classifies each by EOL urgency, publishes a persistent artifact, and alerts your team in Slack before a deadline becomes an incident.

Introduction

AWS retires older database engine versions and Kubernetes minor versions on a published schedule. Running end-of-life (EOL) RDS engine versions exposes your organization to unpatched CVEs, loss of AWS support, and the pressure of forced major-version upgrades on a timeline you didn't choose. Amazon EKS minor versions are supported for approximately 14 months after release; clusters on unsupported versions lose access to security patches, bug fixes, and new features the moment that window closes.

The challenge is visibility at scale. A team managing 30 RDS instances across MySQL, PostgreSQL, and Aurora — spread across two AWS accounts and multiple regions — cannot reliably track a dozen overlapping EOL calendars in a spreadsheet. The version that slips through is almost always the one that causes the incident.

AWS DevOps Agent solves this by automating the full lifecycle of version-EOL monitoring: discovering resources across accounts and regions, classifying findings by urgency, publishing a persistent artifact that stays current, and notifying your team via Slack before a deadline becomes a crisis. This article walks through building and scheduling that solution using a custom agent named rds-eks-version-monitor.

Customer use case

A healthcare technology company runs 30+ RDS instances (MySQL, PostgreSQL, and Aurora) and 8 EKS clusters distributed across two AWS accounts. Their database team maintains an EOL tracking spreadsheet updated quarterly by hand.

During a routine quarter, an Aurora MySQL 2.x instance — MySQL 5.7 compatible — approaches its EOL date. Because the spreadsheet was last updated five months prior, the entry still shows a distant future date. No alert fires. The instance reaches end-of-support without a remediation plan in place, leaving the workload exposed to unpatched CVEs and ineligible for standard AWS support cases.

With the rds-eks-version-monitor agent in place, the same scenario plays out differently. Six months before EOL, the agent classifies the instance as NOTICE and posts to Slack. Three months out, it escalates to WARNING. Inside 90 days, it escalates to CRITICAL — each transition updating the published artifact and sending a severity-grouped Slack notification. The database team has a remediation window measured in months, not days.

Solution overview

The rds-eks-version-monitor agent is a custom AWS DevOps Agent that runs on a bi-weekly schedule (every 14 days). It scans RDS instances and EKS clusters across both AWS accounts, evaluates each resource's engine or Kubernetes version against AWS EOL timelines, and produces two outputs: a persistent artifact and a Slack notification.

Severity classification logic:

CRITICAL  — EOL date already passed, or within 90 days
WARNING   — 91 to 180 days until EOL
NOTICE    — 181 to 365 days until EOL
OK        — More than 365 days until EOL, or no EOL date found

Solution flow:

  1. The schedule trigger fires every 14 days and invokes the rds-eks-version-monitor agent.
  2. The agent uses use_aws to enumerate active regions across both accounts (ACCOUNT_A and ACCOUNT_B).
  3. The agent calls rds:describe_db_instances in every active region of both accounts, collecting engine type, engine version, instance identifier, and region.
  4. The agent calls eks:list_clusters and eks:describe_cluster across all active regions of both accounts, collecting cluster name, Kubernetes version, account, and region.
  5. For each RDS instance, the agent calls rds:describe_db_engine_versions to retrieve the engine's published end-of-life date and computes days remaining.
  6. For each EKS cluster, the agent evaluates the Kubernetes minor version against the published EKS version support calendar.
  7. Each resource is classified as CRITICAL, WARNING, NOTICE, or OK based on days to EOL.
  8. The agent calls create_or_update_artifact to publish or refresh the RDS & EKS Version End-of-Support Monitor artifact with the full findings table.
  9. The agent posts a severity-grouped Slack message via the Slack MCP integration, listing actionable findings with upgrade recommendations.
  10. The agent writes a text summary confirming scan coverage and finding counts by severity.

Solution implementation

Prerequisites

  • An active AWS DevOps Agent workspace with access to both AWS accounts (ACCOUNT_A and ACCOUNT_B).
  • IAM read permissions for the following actions in both accounts:
    • rds:DescribeDBInstances
    • rds:DescribeDBEngineVersions
    • eks:ListClusters
    • eks:DescribeCluster
    • ec2:DescribeRegions
  • A Slack workspace with an MCP integration configured in your AWS DevOps Agent space.
  • Familiarity with creating custom agents in AWS DevOps Agent Chat.

Technical scope

  • Accounts: ACCOUNT_A (primary/hub), ACCOUNT_B (secondary)
  • Regions: All active regions in both accounts, discovered dynamically at runtime
  • Resource types: Amazon RDS DB instances (MySQL, PostgreSQL, MariaDB, Oracle, SQL Server, Aurora), Amazon EKS clusters
  • Schedule: rate(14 days) — bi-weekly
  • Outputs: Persistent artifact (RDS & EKS Version End-of-Support Monitor), Slack notification, agent text summary

Configure the rds-eks-version-monitor agent

The agent is created conversationally through AWS DevOps Agent Chat. The agent prompt defines its role, goal, approach, constraints, and output contract.

Agent name: rds-eks-version-monitor

Agent prompt:

Role:
You are a cloud infrastructure lifecycle agent responsible for tracking RDS and EKS
version end-of-support (EOL) across AWS accounts.

Goal:
Scan all RDS instances and EKS clusters across accounts ACCOUNT_A and ACCOUNT_B.
Classify each resource by EOL severity. Notify via Slack. Publish a persistent artifact.

Approach — execute in order:
1. DISCOVER REGIONS: Use use_aws to list all active regions in both accounts.
2. SCAN RDS: Call rds:describe_db_instances in every active region of both accounts.
   Collect: instance ID, engine, engine version, account ID, region.
3. SCAN EKS: Call eks:list_clusters then eks:describe_cluster in every active region
   of both accounts. Collect: cluster name, Kubernetes version, account ID, region.
4. EVALUATE RDS EOL: For each RDS instance, call rds:describe_db_engine_versions to
   retrieve the engine lifecycle end date. Compute days remaining to EOL.
5. EVALUATE EKS EOL: For each EKS cluster, evaluate the Kubernetes minor version
   against the published EKS version support timeline.
6. CLASSIFY ALL FINDINGS using this severity scale:
     CRITICAL  = EOL already passed OR within 90 days
     WARNING   = 91–180 days to EOL
     NOTICE    = 181–365 days to EOL
     OK        = 365+ days to EOL or no EOL date found
7. BUILD ARTIFACT: Call create_or_update_artifact to publish or refresh the artifact
   titled "RDS & EKS Version End-of-Support Monitor" with all findings.
8. SLACK NOTIFICATION: Post a severity-grouped message to the #devops-alerts Slack
   channel. List CRITICAL and WARNING findings with resource name, account, region,
   current version, recommended upgrade version, EOL date, and days remaining.
   Confirm count of OK resources at the end.
9. WRITE SUMMARY: Output a text summary with scan coverage (accounts, regions,
   resource counts) and finding counts by severity.

Constraints:
- Read-only: do not modify, restart, or delete any resource.
- Scan both accounts in every step.
- If a region call fails, log the error and continue — do not abort the scan.
- Do not create duplicate artifacts; update the existing artifact if it already exists.
- Use verify_aws_claim to validate any inferred version lifecycle facts.

Output:
- Artifact: "RDS & EKS Version End-of-Support Monitor" (create or update)
- Slack: severity-grouped notification to #devops-alerts
- Text: scan summary with finding counts

To create this agent, open AWS DevOps Agent Chat, select Create Agent, paste the prompt above, name the agent rds-eks-version-monitor, and save. The agent is immediately available for manual invocation from Chat and can be attached to a schedule trigger.

Set up the schedule trigger

Once the agent is created, attach a bi-weekly schedule trigger so it runs automatically without manual intervention.

Trigger configuration:

Trigger type:   Schedule
Agent:          rds-eks-version-monitor
Schedule rate:  rate(14 days)
Description:    Bi-weekly RDS and EKS version EOL scan across all accounts

With this schedule in place, the agent fires every 14 days, refreshes the artifact with current findings, and posts an updated Slack notification. Teams receive a consistent, dated signal rather than relying on manual calendar reminders.

Slack notification format:

🔴 CRITICAL / 🟡 WARNING / 🔵 NOTICE — AWS RDS & EKS Version Alert [2026-08-19]

🔴 CRITICAL
• [RDS] prod-mysql-db (ACCOUNT_A, us-east-1): v8.0.28 → upgrade to v8.0.36
  EOL: 2025-10-31 (45 days)

🟡 WARNING
• [EKS] prod-cluster (ACCOUNT_B, us-west-2): v1.28 → upgrade to v1.30
  EOL: 2025-11-01 (90 days)

🔵 NOTICE
• [RDS] analytics-aurora (ACCOUNT_A, us-west-2): Aurora MySQL 2.x (MySQL 5.7)
  EOL: 2026-02-28 (193 days)

✅ 12 resources confirmed current.

Severity grouping ensures that on-call engineers can triage CRITICAL items first without parsing a flat list. Resources classified OK are summarized as a count at the bottom, keeping the message actionable rather than exhaustive.

Beyond automated detection

The scheduled scan covers the systematic, recurring use case — but AWS DevOps Agent Chat is also available for on-demand investigation. Engineers can query the agent conversationally at any point in a sprint or incident:

  • "Which of my RDS instances are running versions close to end of support?"
  • "Are any of my EKS clusters running a Kubernetes version that's about to be deprecated?"
  • "Show me everything in account ACCOUNT_B that's EOL within the next six months."
  • "What's the recommended upgrade path for my Aurora MySQL 2.x instances?"

Because the agent has read access to both accounts and all regions, these conversational queries return the same rigorous findings as the scheduled run — without requiring a new scan cycle to complete. This is especially useful when a CVE disclosure or an AWS end-of-support announcement drops mid-cycle and the team needs immediate situational awareness.

How DevOps Agent monitors version end-of-support

The rds-eks-version-monitor agent combines three AWS API surfaces to build its EOL picture:

RDS lifecycle data: The rds:DescribeDBEngineVersions API returns structured metadata for every engine version, including the Status field (available, deprecated) and, where published, a lifecycle end date. The agent uses this to compute a precise days-to-EOL value for every RDS instance it discovers.

EKS version calendar: EKS publishes its Kubernetes version support timeline as a documented schedule. The agent evaluates each cluster's minor version against this calendar, flagging versions that are within the support window thresholds or already past their end-of-support date.

Cross-account, cross-region coverage: Rather than relying on account-level dashboards, the agent dynamically enumerates active regions at runtime using ec2:DescribeRegions and iterates across both accounts. If a regional API call fails (for example, due to a service endpoint being unavailable in an opt-in region), the agent logs the failure and continues — ensuring a single regional blip does not silently suppress findings from the rest of the estate.

The resulting artifact is a durable, versioned record of every finding. Each bi-weekly run refreshes it in place, so teams always have a current single source of truth rather than a growing inbox of point-in-time reports.

Proactive prevention

Detection is the first step. AWS DevOps Agent can also guide remediation directly from Chat, reducing the time between an alert and an action.

For RDS upgrades, the agent can recommend upgrade paths for MySQL, PostgreSQL, and Aurora engine versions — including whether an in-place minor version upgrade is available or whether a major version upgrade is required. For workloads that cannot tolerate downtime, the agent can suggest Amazon RDS Blue/Green Deployments, which provision a synchronized green environment, apply the version upgrade there, and then execute a managed switchover — typically completing in under a minute with no data loss.

For EKS upgrades, the agent can recommend the safest upgrade path across Kubernetes minor versions and suggest using EKS managed node group rolling updates to replace nodes incrementally, ensuring workload availability throughout the upgrade. For clusters running self-managed node groups, the agent can outline the cordon-drain-terminate-replace pattern.

By pairing the scheduled monitor with on-demand remediation guidance, teams move from reactive firefighting to a managed, documented upgrade cadence.

Cost considerations

The rds-eks-version-monitor agent is lightweight by design. Each bi-weekly run makes a bounded set of read-only API calls:

  • ec2:DescribeRegions — one call per account
  • rds:DescribeDBInstances — one call per active region per account (paginated)
  • rds:DescribeDBEngineVersions — one call per distinct engine version found
  • eks:ListClusters — one call per active region per account
  • eks:DescribeCluster — one call per cluster found

For the reference estate (30+ RDS instances and 8 EKS clusters across two accounts), a full scan typically completes in under two minutes and stays well within AWS free-tier API thresholds. The primary cost driver is the AWS DevOps Agent invocation itself, billed per agent run. At a bi-weekly cadence, this amounts to approximately two runs per month — a negligible cost relative to the engineering time and risk exposure eliminated by automated tracking.

There are no additional infrastructure components to provision: no Lambda functions, no EventBridge rules, no Step Functions state machines, and no DynamoDB tables. The agent, its schedule trigger, and the Slack MCP integration are the entire solution.

Conclusion

Running end-of-life database engines and Kubernetes versions is an infrastructure risk that compounds silently. AWS publishes EOL timelines — the gap is operationalizing that information at scale, across accounts, across regions, and on a cadence that keeps pace with your workload growth.

The rds-eks-version-monitor agent demonstrates how AWS DevOps Agent transforms that operational gap into a solved problem. A custom agent prompt, a bi-weekly schedule trigger, and a Slack MCP integration are all it takes to move from quarterly spreadsheet updates to continuous, severity-classified, Slack-delivered version lifecycle monitoring.

The same pattern extends naturally to other version lifecycle concerns: ElastiCache engine versions, OpenSearch domain versions, Lambda runtime deprecations, and Amazon RDS certificate rotations. Each can be addressed with the same agent-first approach — define the scanning logic in a prompt, classify findings by urgency, publish an artifact, and notify the team.

Version end-of-support events should never be surprises. With AWS DevOps Agent, they don't have to be.