RDS and Aurora Engine Upgrade Operator
What this skill does
Executes RDS and Aurora engine upgrade operations correctly and safely.
Runs deterministic pre-checks before any state-changing CLI (instance or
cluster is available, no pending maintenance actions, pre-upgrade
snapshot exists and is available, parameter group is compatible with the
target engine version, option group is compatible, replication topology
is understood, storage type and free-space headroom are sufficient),
executes the upgrade behind a CONFIRM gate, and verifies the result by
confirming EngineVersion matches the target, the instance or cluster
returns to available, application connectivity is validated, and no
query-performance regression exceeds the configured threshold. Every
major upgrade produces an explicit opt-in requirement plus a blue/green
recommendation for zero downtime; every minor upgrade surfaces the
AutoMinorVersionUpgrade flag so the operator knows whether the next
patch is automatic.
Quick navigation
| Section |
What it covers |
When to read it |
| § Quick reference |
Verdict thresholds (REVIEW_REQUIRED/OPERATION_COMPLETED) + pre-check priority |
Before any operation |
| § Mindset |
Why major upgrades need explicit opt-in, blue/green as the zero-downtime primitive, the param-group trap |
Understanding the safety model |
| § Pre-flight |
Database/cluster metadata gate — state, pending actions, multi-AZ, global cluster, replicas |
Before executing any CLI |
| § Process |
Per-operation planning: major, minor, blue-green, param-group, global, auto-minor, verify, rollback |
When choosing which operation to run |
| § Output format |
Structured OPERATION/VERDICT/PRE_CHECKS/STEPS/POST_VERIFY template |
Formatting the response |
| § Anti-Patterns |
NEVER list — common mistakes that cause extended downtime or strand a cluster mid-upgrade |
Review before risky operations |
| § Pre-flight safety |
Capture pre-state, snapshot, application driver check, rollback plan |
Defense-in-depth |
Quick reference — verdict thresholds
| Verdict |
Trigger condition |
Action |
REVIEW_REQUIRED |
Operation plan is ready but requires human review before execution (major upgrade requires explicit opt-in, blue/green plan needs cutover timing approval, global database upgrade sequencing across Regions, PITR rollback plan, parameter group with pending-reboot changes that need a maintenance window) |
Emit plan with the specific items to review, wait for operator approval |
OPERATION_COMPLETED |
Upgrade finished and post-verification passed (EngineVersion matches target, instance or cluster returned to available, application connectivity validated, no query regression above threshold, replicas in sync) |
Emit verification results, monitoring plan |
Priority order for pre-checks (apply in this sequence, any failure routes
to REVIEW_REQUIRED with the failure surfaced):
- Database reachability — instance or cluster exists,
DBInstanceStatus
or Status is available, NOT modifying, upgrading,
backing-up, or storage-optimization. No PendingModifiedValues
that would conflict with the upgrade.
- Target engine version validity —
describe-db-engine-versions
confirms the target EngineVersion is valid for the instance class,
storage type, and current engine. Major version path is supported
(skipping major versions is not allowed).
- Pre-upgrade snapshot — a manual snapshot exists taken AFTER any
pending writes, with status
available. This is the rollback anchor.
- Parameter group compatibility — a custom parameter group exists for
the target engine family (e.g.,
default.aurora-mysql8.0 for an Aurora
MySQL 5.7 to 8.0 upgrade). The default param group from the source
version is NOT compatible.
- Option group compatibility — an option group for the target engine
family exists and includes the same options (or validated replacements).
- Replication topology understood — read replicas, Aurora replicas,
and global cluster secondaries are identified. The upgrade order is
primary then replicas (or blue/green switchover).
- Storage headroom — at least 20% free storage for the upgrade
temporary space (engine upgrade can rebuild system tables).
- Application driver support — the application's database driver
version supports the target engine version (e.g., MySQL Connector/J 8.x
for Aurora MySQL 8.0; PostgreSQL JDBC 42.x for PostgreSQL 15).
- Maintenance window — the upgrade is scheduled in the configured
maintenance window OR the operator has explicitly approved an immediate
upgrade.
Cost/time baselines (2026):
- Minor version upgrade: 5-20 minutes of
upgrading state, brief
connection drop on single-AZ; multi-AZ rolls through a failover.
- Major version upgrade: 20 minutes to 4 hours depending on database
size (system table rebuild). Aurora is typically faster than RDS
Standard because Aurora stores the system catalogs differently.
- Blue/green switchover: typically under 60 seconds (DNS shift). The
green environment provisioning takes 30-90 minutes before the
switchover.
- Global database upgrade: primary Region first (20 min to 4 hours),
then each secondary Region sequentially (the secondary rebuilds from
the upgraded primary).
- PITR rollback to pre-upgrade state: recovery time objective is the
snapshot-or-PITR-restore time (minutes to hours depending on size).
Mindset
One-line takeaway: a major version upgrade is an irreversible
cut-over unless you pre-planned a rollback path (PITR to the pre-upgrade
moment or a blue/green switchover back). modify-db-instance --engine-version returns immediately but the engine upgrade runs
asynchronously — the database is in upgrading state for the full
duration, during which the old version is gone and the new version is
not yet ready. Driven by three RDS realities:
Major upgrades require explicit opt-in; auto applies only minor.
AutoMinorVersionUpgrade: true schedules minor version patches in the
maintenance window. It NEVER triggers a major version upgrade. Setting
--engine-version to a higher major version is the explicit opt-in
and it is irreversible without a restore — you cannot "downgrade" an
engine in place.
Blue/green deploy provides zero-downtime upgrade. The blue/green
pattern creates a full copy of the production environment (the green)
running the target engine version, keeps it in sync via logical
replication, and switches traffic over via a DNS shift (typically
under 60 seconds). This is the recommended path for production major
upgrades. The switchover is reversible until the green is deleted.
Parameter group must be compatible with the target version. Each
engine family has its own parameter group family (e.g.,
aurora-mysql5.7 vs aurora-mysql8.0). An upgrade from 5.7 to 8.0
REQUIRES a parameter group from the aurora-mysql8.0 family. Using
the 5.7 parameter group causes the upgrade to fail or the instance to
boot with default parameters, silently dropping custom settings like
max_connections, innodb_buffer_pool_size, or character_set_server.
Pre-flight: database metadata gate
Run before classification. Misclassifying these produces wrong plans.
Pagination: describe-db-instances paginates at 100/page — drain
--starting-token to completion.
Six live-account pre-flight commands (instance and cluster metadata, valid upgrade targets, pre-upgrade snapshots, pending maintenance, global topology): moved verbatim to references/diagnostic-commands.md.
The attribute table below maps the captured fields to plan effects.
Malformed input: if the input JSON is invalid or missing required
fields, emit VERDICT: ERROR with REASON: DB/cluster configuration is not valid JSON or is missing required fields — cannot plan. and
REMEDIATION: Re-fetch with aws rds describe-db-instances --db-instance-identifier <id> --output json and re-plan.
| Database attribute |
Effect on operation |
DBInstanceStatus not available |
Upgrade BLOCKED. Wait for the current operation to finish, or investigate a stuck status. |
PendingModifiedValues non-empty |
Upgrade routes to REVIEW_REQUIRED. Resolve the pending change (apply immediately or cancel) before scheduling the upgrade. |
MultiAZ: true |
Upgrade runs through a rolling failover. Plan for two brief connection drops (primary -> standby, then upgrade -> failback). |
ReadReplicaSourceDBInstanceIdentifier set (this is a replica) |
Upgrade the SOURCE first, then replicas. Replicas cannot run a higher engine version than the source. |
GlobalClusterIdentifier set |
Global cluster member. Primary Region must upgrade first, then secondaries. Use the global-upgrade operation. |
StorageType: gp2 with < 20% free |
Upgrade routes to REVIEW_REQUIRED — increase storage or convert to gp3 first. |
AutoMinorVersionUpgrade: true |
Minor versions are applied automatically in the maintenance window. A manual minor upgrade overrides the schedule. |
DBParameterGroups[0].ParameterApplyStatus: pending-reboot |
A pending parameter change will be applied during the upgrade reboot. Route to REVIEW_REQUIRED. |
DBParameterGroups[0].DBParameterGroupName: default.<engine><version> |
Default param group. For major upgrades, a custom param group for the target version is required. |
OptionGroupMemberships[0].Status: pending-maintenance |
An option group change is pending. Resolve before upgrade. |
Process — operation planning (apply in order)
Step 0: Expert knowledge — non-obvious RDS/Aurora upgrade behaviors
Ten non-obvious upgrade behaviors (explicit major opt-in, parameter-family migration, blue/green zero-downtime path, multi-AZ rolling failover, apply-immediately semantics, caching_sha2_password, PostgreSQL 14+ statistics, Serverless v1 restore-only, SupportsGlobalDatabases, upgrade-failed recovery): moved verbatim to references/advanced-patterns.md.
Load before planning any upgrade; Steps 1-4 assume these constraints.
Step 1: Pre-check gate — REVIEW_REQUIRED if any check needs human attention
Run ALL pre-checks for the chosen operation. If any check fails or
requires human review, the verdict is REVIEW_REQUIRED with the specific
items listed. Do NOT execute until the operator reviews.
For ALL operations:
- Instance or cluster exists (
describe-db-instances /
describe-db-clusters does not return
DBInstanceNotFound).
DBInstanceStatus / Status is available (not modifying,
upgrading, backing-up, storage-optimization, resetting,
incompatible-parameters).
- No
PendingModifiedValues (a pending change conflicts with the
upgrade — apply or cancel first).
- Storage type and free space: at least 20% free storage. For
gp2,
consider converting to gp3 first (gp3 supports higher IOPS at
lower cost and is the recommended storage type for 2024+).
PerformanceInsightsEnabled: true (for before/after comparison).
For major-upgrade (modify-db-instance --engine-version <target-major>):
6. describe-db-engine-versions confirms the target version is a
valid upgrade target from the current version.
7. The upgrade path is sequential (no skipped major versions).
8. A custom parameter group for the target engine family exists and
is attached (or will be attached as part of the modify call).
9. An option group for the target engine family exists and is attached
(or will be attached as part of the modify call).
10. A pre-upgrade manual snapshot exists and is available.
11. Application driver support verified (driver version supports the
target engine version).
12. PreferredMaintenanceWindow acknowledged — with
--apply-immediately the upgrade starts now; without it, the
upgrade is deferred to the next window.
13. Blue/green recommended for production (surface the alternative
plan if the operator chose in-place).
For minor-upgrade (modify-db-instance --engine-version <target-minor> or --auto-minor-version-upgrade):
6. describe-db-engine-versions confirms the target version is valid.
7. Minor version is within the same major version.
8. AutoMinorVersionUpgrade current state acknowledged — if true
and the target minor is the current preferred patch, the upgrade
may happen automatically in the next window.
For blue-green-upgrade (create-blue-green-deployment):
6. The source instance or cluster is available.
7. The target engine version is a valid upgrade target.
8. Parameter and option groups for the target version are identified.
9. The application tolerates logical replication lag during the sync
phase (typically seconds; longer for large write-heavy workloads).
10. A switchover window is planned (the switchover itself is under 60
seconds but the green provisioning takes 30-90 minutes).
For param-group-migrate (pre-stage a target-version parameter group):
6. The target parameter group family matches the target engine family
(e.g., aurora-mysql8.0 for Aurora MySQL 8.0).
7. Parameters diffed against the source param group; custom values
reproduced.
8. Static parameters (those requiring a reboot) identified — they will
apply at the next reboot (i.e., during the upgrade).
For global-upgrade (multi-Region global cluster):
6. describe-global-clusters confirms the global cluster topology.
7. The primary Region is identified.
8. Each secondary Region's cluster is available.
9. The target engine version has SupportsGlobalDatabases: true.
10. A Region-by-Region cutover plan is documented (primary first,
secondaries rebuilt sequentially).
For configure-auto-minor (toggle AutoMinorVersionUpgrade):
6. The operator understands that enabling auto-minor schedules patches
in the maintenance window — it does NOT trigger an immediate patch.
For post-upgrade-verify (read-only):
6. The instance or cluster has returned to available.
7. EngineVersion matches the target.
8. Performance Insights has data for the pre-upgrade and post-upgrade
windows.
For rollback (PITR to pre-upgrade state):
6. A pre-upgrade snapshot or a valid PITR window (within the backup
retention period) exists.
7. The operator understands that rollback means a NEW instance or
cluster — the endpoint changes. Application connection strings
must be updated.
Upgrade failure-mode table (InvalidParameterCombination, parameter/option group gaps, stuck upgrade-failed, MySQL 8.0 auth plugin, pg_hba.conf, planner-statistics regressions, replica lag, global secondary rebuild): moved verbatim to references/error-handling.md.
Load when a pre-check fails or an upgrade misbehaves.
Step 2: OPERATION_COMPLETED or REVIEW_REQUIRED — emit operation plan
If all pre-checks pass AND the operation is read-only or low-risk
(minor version with --apply-immediately, parameter group migration
without static changes, post-upgrade verification), emit
VERDICT: OPERATION_COMPLETED (for already-finished operations) or
the executable plan with the CONFIRM gate.
For operations requiring human review (major upgrade, blue/green
cutover, global database sequencing, rollback via PITR), emit
VERDICT: REVIEW_REQUIRED with the specific items to review. The plan
includes:
- The exact AWS CLI command with all flags populated from the database
configuration.
- The expected duration (minor 5-20 min; major 20 min to 4 hours;
blue/green switchover under 60 seconds after 30-90 min of green
provisioning).
- The expected side-effects (
EngineVersion changes, instance reboots,
connections drop, replicas rebuild).
- The CONFIRM gate prompt.
- The rollback plan (snapshot ARN for in-place; blue/green switchback
for blue/green).
Step 3: Execute behind CONFIRM gate
- MANDATORY CONFIRMATION GATE. Before any state-changing CLI
(
modify-db-instance, modify-db-cluster,
create-blue-green-deployment, switchover-blue-green-deployment,
delete-blue-green-deployment, promote-read-replica,
restore-db-instance-to-point-in-time), emit:
CONFIRM: About to <operation> on <db-id> in account <account> region <region>. This will <consequence>. Proceed? (yes/no).
Do NOT execute until the operator confirms.
- Capture pre-state for rollback:
aws rds describe-db-instances --db-instance-identifier <id> --output json > /tmp/<id>-pre-$(date +%s).json AND a manual snapshot if one does not already exist:
aws rds create-db-snapshot --db-instance-identifier <id> --db-snapshot-id <id>-pre-upgrade-$(date +%s).
- Execute the CLI. For
modify-db-instance, the API returns
immediately; the actual upgrade runs asynchronously. The instance
enters upgrading state.
- Monitor the upgrade via RDS events:
aws rds describe-events --source-type db-instance --source-identifier <id> --start-time $(($(date +%s) - 600))000.
Step 4: Post-verification — OPERATION_COMPLETED
After the upgrade finishes, run post-verification. ALL checks must pass
for OPERATION_COMPLETED.
describe-db-instances --db-instance-identifier <id> — confirm
EngineVersion matches the target AND DBInstanceStatus: available.
describe-db-snapshots — confirm the automatic snapshot taken by RDS
during the upgrade is available (this is the post-upgrade backup).
- For multi-AZ: confirm both the primary and standby are on the target
version (check
SecondaryAvailabilityZone and failover status).
- For Aurora clusters: confirm ALL cluster members (writer and readers)
report the target
EngineVersion. Check AuroraReplicaLag has
returned to baseline.
- For global clusters: confirm ALL secondary Region clusters have been
rebuilt and report the target version.
- Application connectivity: test a connection from the application's
subnet/SG to the database endpoint on the DB port. Verify the
application driver version connects successfully.
- Query performance verification: compare Performance Insights
top-queries latency (post-upgrade) against the pre-upgrade baseline.
Investigate any query with > 2x latency regression.
- For PostgreSQL: run
ANALYZE on all user databases to refresh
planner statistics. Schedule a VACUUM ANALYZE during the next low-
traffic window.
- For MySQL/Aurora MySQL 8.0: verify the authentication plugin
(
caching_sha2_password vs mysql_native_password) matches what
the application driver expects.
If ANY verification fails, emit VERDICT: ERROR with the failure
details — do not claim OPERATION_COMPLETED. A failed verification
typically means a query regression or an application connectivity
issue; route to the rollback operation if the regression is severe.
Output format (per operation)
OPERATION: <major-upgrade | minor-upgrade | blue-green-upgrade | param-group-migrate | global-upgrade | configure-auto-minor | post-upgrade-verify | rollback>
VERDICT: OPERATION_COMPLETED | REVIEW_REQUIRED
TARGET: <db-id-or-cluster-id> (engine: <current-version> -> <target-version>)
PRE_CHECKS:
- [PASS] <check description>
- [REVIEW] <check description> — <item to review>
STEPS:
1. <CLI command with flags populated>
2. <wait / monitoring command>
3. <next step>
POST_VERIFY:
- [PASS] <verification description>
- [FAIL] <verification description> — <reason>
NOTES: <rollback plan, monitoring, caveats>
Worked example — minor-upgrade (in-place, OPERATION_COMPLETED)
OPERATION: minor-upgrade
VERDICT: OPERATION_COMPLETED
TARGET: prod-orders-db (engine: postgres 14.10 -> 14.11)
PRE_CHECKS:
- [PASS] DBInstanceStatus: available
- [PASS] No PendingModifiedValues
- [PASS] describe-db-engine-versions confirms 14.11 is valid for
aurora-postgresql on db.r6g.large
- [PASS] Storage: 800 GB allocated, 350 GB free (44% headroom)
- [PASS] PerformanceInsightsEnabled: true
- [PASS] AutoMinorVersionUpgrade: false (operator-initiated)
STEPS:
1. CONFIRM: About to upgrade prod-orders-db from PostgreSQL 14.10 to
14.11 in account 111111111111 region us-east-1. This will reboot
the instance (brief connection drop, ~30 seconds for single-AZ,
two drops for multi-AZ). Proceed? (yes/no)
2. aws rds create-db-snapshot \
--db-instance-identifier prod-orders-db \
--db-snapshot-id prod-orders-db-pre-14-11-$(date +%s)
3. aws rds wait db-snapshot-available \
--db-snapshot-id prod-orders-db-pre-14-11-...
4. aws rds modify-db-instance \
--db-instance-identifier prod-orders-db \
--engine-version 14.11 \
--apply-immediately
5. aws rds wait db-instance-available \
--db-instance-identifier prod-orders-db
POST_VERIFY:
- [PASS] EngineVersion: 14.11 (confirmed via describe-db-instances)
- [PASS] DBInstanceStatus: available
- [PASS] Application connectivity: psql connect from app subnet OK
- [PASS] Performance Insights: top-10 query latency within +/- 10%
of pre-upgrade baseline
NOTES:
- Minor version upgrade completed in 12 minutes. Single-AZ, one
connection drop of ~25 seconds.
- PostgreSQL ANALYZE scheduled for the next low-traffic window
(03:00 UTC) to refresh planner statistics.
- Rollback: restore from snapshot prod-orders-db-pre-14-11-...
if any regression is detected. This creates a NEW instance —
endpoint will change.
Worked example — major-upgrade via blue/green (REVIEW_REQUIRED)
Full worked example (Aurora MySQL 5.7 to 8.0 blue/green with driver and switchover review items): moved verbatim to references/worked-examples.md.
Apply the Output format template above to reproduce it.
Worked example — global database upgrade (condensed)
Condensed worked example (global database upgrade with Region sequencing): moved verbatim to references/worked-examples.md.
Apply the Output format template above to reproduce it.
Worked example — rollback via PITR (condensed)
Condensed worked example (rollback via PITR with data-loss review items): moved verbatim to references/worked-examples.md.
Apply the Output format template above to reproduce it.
Anti-Patterns — NEVER
NEVER attempt a major version upgrade without a pre-upgrade manual
snapshot. The automatic snapshot RDS takes is harder to locate under
incident pressure. A named manual snapshot is the rollback anchor.
NEVER attach a parameter group from the wrong engine family. Aurora
MySQL 5.7 param groups are NOT compatible with 8.0 — the instance
will boot with defaults, silently dropping custom settings.
NEVER skip major versions in an upgrade path. PostgreSQL 13 to 15
requires going through 14. Aurora MySQL 5.6 to 8.0 requires 5.7
first. describe-db-engine-versions lists valid targets.
NEVER upgrade a read replica before its source, or a global cluster
secondary before the primary. Always upgrade source/primary first.
NEVER assume AutoMinorVersionUpgrade: true handles major versions.
It only applies to minor patches within the same major. Major
upgrades always require explicit opt-in.
NEVER run an in-place major upgrade on production without considering
blue/green deploy first. In-place upgrades have a 20-minute to 4-hour
upgrading window. Blue/green provides a sub-60-second switchover
with a rollback safety net.
NEVER delete the blue environment immediately after a blue/green
switchover. Keep it 24-72 hours as a rollback safety net.
NEVER forget to run ANALYZE after a PostgreSQL major upgrade.
pg_upgrade rebuilds planner statistics; without ANALYZE, query
plans can be 10-100x slower.
NEVER assume the application driver supports the target version.
MySQL 8.0's caching_sha2_password breaks older connectors.
PostgreSQL 14+ tightened pg_hba.conf defaults. Verify BEFORE.
NEVER rely on "downgrade" as rollback. RDS does not support in-place
engine downgrades. The ONLY rollback is PITR/snapshot restore —
which creates a NEW instance with a NEW endpoint.
NEVER ignore PendingModifiedValues. A pending storage, instance
class, or parameter change that fires during the upgrade causes
unpredictable behavior. Resolve before upgrading.
NEVER upgrade Aurora Serverless v1 in-place to a major version —
restore a snapshot to Serverless v2 instead.
NEVER auto-execute a state-changing RDS CLI without the CONFIRM gate.
Engine upgrades, blue/green switchovers, and PITR restores have
downtime and data-loss side effects.
NEVER overlook SupportsGlobalDatabases when upgrading a global
cluster member. Not all engine versions support global databases.
Pre-flight safety checks (run before any remediation CLI)
Four pre-flight safety checks (CONFIRM gate, pre-state capture with snapshot, engine/param/option/driver validation, blue/green preference): moved verbatim to references/diagnostic-commands.md.
Defense-in-depth before any remediation CLI.
Recent AWS features (2024-2026)
Eight recent AWS features 2024-2026 (Blue/Green GA, Aurora MySQL 3.x auth, PostgreSQL 15, gp3, Serverless v2, global sequencing, RDS Extended Support, Performance Insights retention): moved verbatim to references/advanced-patterns.md.
Consult before citing feature limits or recency.
References (load on demand)
- references/worked-examples.md — Secondary worked examples (blue/green major upgrade, global database upgrade, rollback via PITR).
- references/advanced-patterns.md — Step 0 non-obvious upgrade behaviors, recent AWS features (2024-2026).
- references/error-handling.md — Upgrade failure-mode table for diagnosis.
- references/diagnostic-commands.md — Live-account pre-flight commands, pre-flight safety checks.
- references/diagnostic-procedures.md — Failure-diagnosis procedures per archetype.
- references/upgrade-paths-and-compatibility.md — Version paths, parameter/option group families, driver compatibility.
Domain
AWS CloudOps / RDS and Aurora Engine Upgrade, Major Version Cut-over &
Zero-Downtime Blue/Green Deploy.
AWS documentation
1---2name: rds-upgrade-operator3description: 'Operates Amazon RDS and Aurora engine upgrade workflows end-to-end — major version upgrades (explicit opt-in, pre-check: snapshot, parameter group compatibility, application driver support), minor version upgrades (auto-minor-version flag, patch schedule), Aurora MySQL 5.7 to 8.0, PostgreSQL 13 to 14 to 15 upgrade paths, blue/green deployments for zero- downtime upgrades, custom parameter group migration for the target engine version, option group migration, application connection string validation, post-upgrade verification (query performance regression, feature parity, analyzer changes), rollback strategy via point-in-time recovery, global database upgrade sequencing (primary then secondaries), multi-AZ upgrade behavior (rolling failover), and maintenance window scheduling. Runs deterministic pre-checks (available state, pending actions, snapshot exists, param group compatibility, option group compatibility, replication topology, storage type, free storage headroom) behind a CONFIRM gate and emits...'4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan classification. Live-account operations use aws rds modify-db-instance --engine-version, modify-db-cluster --engine-version, create-blue-green-deployment, switchover-blue-green-deployment, describe-db-engine-versions, describe-db-instances, describe-db-clusters, create-db-snapshot, describe-db-snapshots, modify-db-instance --auto-minor-version-upgrade, promote-read-replica...6metadata:7 source: https://skillmd.com/skills/jhkchan/rds-upgrade-operator8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '4'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Databases15 task_type: operate16 skill_class: capability17 lifecycle_status: active18 verdict_shape: OPERATION_COMPLETED | REVIEW_REQUIRED19 when_to_use: Upgrading an RDS instance or Aurora cluster engine version (major or minor), planning a major version cut-over with pre-checks and rollback, deploying blue/green for zero-downtime upgrade, migrating parameter or option groups to a target engine version, sequencing a global database upgrade across Regions, scheduling a maintenance-window upgrade, enabling or disabling auto-minor-version-upgrade, validating application connection strings after an upgrade, or verifying post-upgrade query performance and feature parity.20 activation_triggers: upgrade RDS engine, major version upgrade, minor version upgrade, Aurora MySQL 8.0 upgrade, PostgreSQL 15 upgrade, blue/green deploy RDS, zero-downtime database upgrade, parameter group migration, option group migration, global database upgrade, maintenance window upgrade, auto minor version upgrade, post-upgrade verification, rollback RDS upgrade, RDS engine version21 invocation_schema: 'Input: either (a) a database/cluster configuration (describe-db-instances or describe-db-clusters output) plus the intended operation (major-upgrade, minor-upgrade, blue-green-upgrade, param-group-migrate, global-upgrade, configure-auto-minor, post-upgrade-verify, rollback), OR (b) a DB instance or cluster identifier + operation for live-account execution. Output: deterministic OPERATION / VERDICT / PRE_CHECKS / STEPS / POST_VERIFY / NOTES block per upgrade, where VERDICT is OPERATION_COMPLETED or REVIEW_REQUIRED.'22 version: 0.1.023 author: Jacky Chan — AWS Community Builder24 keywords: RDS upgrade, Aurora upgrade, major version upgrade, minor version upgrade, engine version, auto-minor-version-upgrade, Aurora MySQL 8.0, PostgreSQL 15, blue/green deployment, zero-downtime upgrade, parameter group migration, option group migration, connection string validation, post-upgrade verification, query performance regression, point-in-time recovery, rollback strategy, global database upgrade, multi-AZ upgrade, maintenance window, switchover, UpgradeInProgress25 tags: aws, rds, aurora, database, upgrade, mysql, postgresql, blue-green, operate26---2728# RDS and Aurora Engine Upgrade Operator2930## What this skill does3132Executes RDS and Aurora engine upgrade operations correctly and safely.33Runs deterministic pre-checks before any state-changing CLI (instance or34cluster is `available`, no pending maintenance actions, pre-upgrade35snapshot exists and is `available`, parameter group is compatible with the36target engine version, option group is compatible, replication topology37is understood, storage type and free-space headroom are sufficient),38executes the upgrade behind a CONFIRM gate, and verifies the result by39confirming `EngineVersion` matches the target, the instance or cluster40returns to `available`, application connectivity is validated, and no41query-performance regression exceeds the configured threshold. Every42major upgrade produces an explicit opt-in requirement plus a blue/green43recommendation for zero downtime; every minor upgrade surfaces the44`AutoMinorVersionUpgrade` flag so the operator knows whether the next45patch is automatic.4647## Quick navigation4849| Section | What it covers | When to read it |50|---|---|---|51| **§ Quick reference** | Verdict thresholds (REVIEW_REQUIRED/OPERATION_COMPLETED) + pre-check priority | Before any operation |52| **§ Mindset** | Why major upgrades need explicit opt-in, blue/green as the zero-downtime primitive, the param-group trap | Understanding the safety model |53| **§ Pre-flight** | Database/cluster metadata gate — state, pending actions, multi-AZ, global cluster, replicas | Before executing any CLI |54| **§ Process** | Per-operation planning: major, minor, blue-green, param-group, global, auto-minor, verify, rollback | When choosing which operation to run |55| **§ Output format** | Structured OPERATION/VERDICT/PRE_CHECKS/STEPS/POST_VERIFY template | Formatting the response |56| **§ Anti-Patterns** | NEVER list — common mistakes that cause extended downtime or strand a cluster mid-upgrade | Review before risky operations |57| **§ Pre-flight safety** | Capture pre-state, snapshot, application driver check, rollback plan | Defense-in-depth |5859## Quick reference — verdict thresholds6061| Verdict | Trigger condition | Action |62|---|---|---|63| `REVIEW_REQUIRED` | Operation plan is ready but requires human review before execution (major upgrade requires explicit opt-in, blue/green plan needs cutover timing approval, global database upgrade sequencing across Regions, PITR rollback plan, parameter group with `pending-reboot` changes that need a maintenance window) | Emit plan with the specific items to review, wait for operator approval |64| `OPERATION_COMPLETED` | Upgrade finished and post-verification passed (`EngineVersion` matches target, instance or cluster returned to `available`, application connectivity validated, no query regression above threshold, replicas in sync) | Emit verification results, monitoring plan |6566**Priority order for pre-checks (apply in this sequence, any failure routes67to REVIEW_REQUIRED with the failure surfaced):**68691. **Database reachability** — instance or cluster exists, `DBInstanceStatus`70 or `Status` is `available`, NOT `modifying`, `upgrading`,71 `backing-up`, or `storage-optimization`. No `PendingModifiedValues`72 that would conflict with the upgrade.732. **Target engine version validity** — `describe-db-engine-versions`74 confirms the target `EngineVersion` is valid for the instance class,75 storage type, and current engine. Major version path is supported76 (skipping major versions is not allowed).773. **Pre-upgrade snapshot** — a manual snapshot exists taken AFTER any78 pending writes, with status `available`. This is the rollback anchor.794. **Parameter group compatibility** — a custom parameter group exists for80 the target engine family (e.g., `default.aurora-mysql8.0` for an Aurora81 MySQL 5.7 to 8.0 upgrade). The default param group from the source82 version is NOT compatible.835. **Option group compatibility** — an option group for the target engine84 family exists and includes the same options (or validated replacements).856. **Replication topology understood** — read replicas, Aurora replicas,86 and global cluster secondaries are identified. The upgrade order is87 primary then replicas (or blue/green switchover).887. **Storage headroom** — at least 20% free storage for the upgrade89 temporary space (engine upgrade can rebuild system tables).908. **Application driver support** — the application's database driver91 version supports the target engine version (e.g., MySQL Connector/J 8.x92 for Aurora MySQL 8.0; PostgreSQL JDBC 42.x for PostgreSQL 15).939. **Maintenance window** — the upgrade is scheduled in the configured94 maintenance window OR the operator has explicitly approved an immediate95 upgrade.9697**Cost/time baselines (2026):**9899- Minor version upgrade: 5-20 minutes of `upgrading` state, brief100 connection drop on single-AZ; multi-AZ rolls through a failover.101- Major version upgrade: 20 minutes to 4 hours depending on database102 size (system table rebuild). Aurora is typically faster than RDS103 Standard because Aurora stores the system catalogs differently.104- Blue/green switchover: typically under 60 seconds (DNS shift). The105 green environment provisioning takes 30-90 minutes before the106 switchover.107- Global database upgrade: primary Region first (20 min to 4 hours),108 then each secondary Region sequentially (the secondary rebuilds from109 the upgraded primary).110- PITR rollback to pre-upgrade state: recovery time objective is the111 snapshot-or-PITR-restore time (minutes to hours depending on size).112113## Mindset114115**One-line takeaway:** a major version upgrade is an irreversible116cut-over unless you pre-planned a rollback path (PITR to the pre-upgrade117moment or a blue/green switchover back). `modify-db-instance118--engine-version` returns immediately but the engine upgrade runs119asynchronously — the database is in `upgrading` state for the full120duration, during which the old version is gone and the new version is121not yet ready. Driven by three RDS realities:122123- **Major upgrades require explicit opt-in; auto applies only minor.**124 `AutoMinorVersionUpgrade: true` schedules minor version patches in the125 maintenance window. It NEVER triggers a major version upgrade. Setting126 `--engine-version` to a higher major version is the explicit opt-in127 and it is irreversible without a restore — you cannot "downgrade" an128 engine in place.129130- **Blue/green deploy provides zero-downtime upgrade.** The blue/green131 pattern creates a full copy of the production environment (the green)132 running the target engine version, keeps it in sync via logical133 replication, and switches traffic over via a DNS shift (typically134 under 60 seconds). This is the recommended path for production major135 upgrades. The switchover is reversible until the green is deleted.136137- **Parameter group must be compatible with the target version.** Each138 engine family has its own parameter group family (e.g.,139 `aurora-mysql5.7` vs `aurora-mysql8.0`). An upgrade from 5.7 to 8.0140 REQUIRES a parameter group from the `aurora-mysql8.0` family. Using141 the 5.7 parameter group causes the upgrade to fail or the instance to142 boot with default parameters, silently dropping custom settings like143 `max_connections`, `innodb_buffer_pool_size`, or `character_set_server`.144145## Pre-flight: database metadata gate146147Run before classification. Misclassifying these produces wrong plans.148149**Pagination:** `describe-db-instances` paginates at 100/page — drain150`--starting-token` to completion.151152Six live-account pre-flight commands (instance and cluster metadata, valid upgrade targets, pre-upgrade snapshots, pending maintenance, global topology): moved verbatim to [references/diagnostic-commands.md](references/diagnostic-commands.md).153The attribute table below maps the captured fields to plan effects.154155**Malformed input:** if the input JSON is invalid or missing required156fields, emit `VERDICT: ERROR` with `REASON: DB/cluster configuration157is not valid JSON or is missing required fields — cannot plan.` and158`REMEDIATION: Re-fetch with aws rds describe-db-instances159--db-instance-identifier <id> --output json and re-plan.`160161| Database attribute | Effect on operation |162|---|---|163| `DBInstanceStatus` not `available` | Upgrade BLOCKED. Wait for the current operation to finish, or investigate a stuck status. |164| `PendingModifiedValues` non-empty | Upgrade routes to REVIEW_REQUIRED. Resolve the pending change (apply immediately or cancel) before scheduling the upgrade. |165| `MultiAZ: true` | Upgrade runs through a rolling failover. Plan for two brief connection drops (primary -> standby, then upgrade -> failback). |166| `ReadReplicaSourceDBInstanceIdentifier` set (this is a replica) | Upgrade the SOURCE first, then replicas. Replicas cannot run a higher engine version than the source. |167| `GlobalClusterIdentifier` set | Global cluster member. Primary Region must upgrade first, then secondaries. Use the global-upgrade operation. |168| `StorageType: gp2` with < 20% free | Upgrade routes to REVIEW_REQUIRED — increase storage or convert to gp3 first. |169| `AutoMinorVersionUpgrade: true` | Minor versions are applied automatically in the maintenance window. A manual minor upgrade overrides the schedule. |170| `DBParameterGroups[0].ParameterApplyStatus: pending-reboot` | A pending parameter change will be applied during the upgrade reboot. Route to REVIEW_REQUIRED. |171| `DBParameterGroups[0].DBParameterGroupName: default.<engine><version>` | Default param group. For major upgrades, a custom param group for the target version is required. |172| `OptionGroupMemberships[0].Status: pending-maintenance` | An option group change is pending. Resolve before upgrade. |173174## Process — operation planning (apply in order)175176### Step 0: Expert knowledge — non-obvious RDS/Aurora upgrade behaviors177178Ten non-obvious upgrade behaviors (explicit major opt-in, parameter-family migration, blue/green zero-downtime path, multi-AZ rolling failover, apply-immediately semantics, caching_sha2_password, PostgreSQL 14+ statistics, Serverless v1 restore-only, SupportsGlobalDatabases, upgrade-failed recovery): moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).179Load before planning any upgrade; Steps 1-4 assume these constraints.180181### Step 1: Pre-check gate — REVIEW_REQUIRED if any check needs human attention182183Run ALL pre-checks for the chosen operation. If any check fails or184requires human review, the verdict is REVIEW_REQUIRED with the specific185items listed. Do NOT execute until the operator reviews.186187**For ALL operations:**1881. Instance or cluster exists (`describe-db-instances` /189 `describe-db-clusters` does not return190 `DBInstanceNotFound`).1912. `DBInstanceStatus` / `Status` is `available` (not `modifying`,192 `upgrading`, `backing-up`, `storage-optimization`, `resetting`,193 `incompatible-parameters`).1943. No `PendingModifiedValues` (a pending change conflicts with the195 upgrade — apply or cancel first).1964. Storage type and free space: at least 20% free storage. For `gp2`,197 consider converting to `gp3` first (gp3 supports higher IOPS at198 lower cost and is the recommended storage type for 2024+).1995. `PerformanceInsightsEnabled: true` (for before/after comparison).200201**For major-upgrade (`modify-db-instance --engine-version202<target-major>`):**2036. `describe-db-engine-versions` confirms the target version is a204 valid upgrade target from the current version.2057. The upgrade path is sequential (no skipped major versions).2068. A custom parameter group for the target engine family exists and207 is attached (or will be attached as part of the modify call).2089. An option group for the target engine family exists and is attached209 (or will be attached as part of the modify call).21010. A pre-upgrade manual snapshot exists and is `available`.21111. Application driver support verified (driver version supports the212 target engine version).21312. `PreferredMaintenanceWindow` acknowledged — with214 `--apply-immediately` the upgrade starts now; without it, the215 upgrade is deferred to the next window.21613. Blue/green recommended for production (surface the alternative217 plan if the operator chose in-place).218219**For minor-upgrade (`modify-db-instance --engine-version220<target-minor>` or `--auto-minor-version-upgrade`):**2216. `describe-db-engine-versions` confirms the target version is valid.2227. Minor version is within the same major version.2238. `AutoMinorVersionUpgrade` current state acknowledged — if `true`224 and the target minor is the current preferred patch, the upgrade225 may happen automatically in the next window.226227**For blue-green-upgrade (`create-blue-green-deployment`):**2286. The source instance or cluster is `available`.2297. The target engine version is a valid upgrade target.2308. Parameter and option groups for the target version are identified.2319. The application tolerates logical replication lag during the sync232 phase (typically seconds; longer for large write-heavy workloads).23310. A switchover window is planned (the switchover itself is under 60234 seconds but the green provisioning takes 30-90 minutes).235236**For param-group-migrate (pre-stage a target-version parameter group):**2376. The target parameter group family matches the target engine family238 (e.g., `aurora-mysql8.0` for Aurora MySQL 8.0).2397. Parameters diffed against the source param group; custom values240 reproduced.2418. Static parameters (those requiring a reboot) identified — they will242 apply at the next reboot (i.e., during the upgrade).243244**For global-upgrade (multi-Region global cluster):**2456. `describe-global-clusters` confirms the global cluster topology.2467. The primary Region is identified.2478. Each secondary Region's cluster is `available`.2489. The target engine version has `SupportsGlobalDatabases: true`.24910. A Region-by-Region cutover plan is documented (primary first,250 secondaries rebuilt sequentially).251252**For configure-auto-minor (toggle `AutoMinorVersionUpgrade`):**2536. The operator understands that enabling auto-minor schedules patches254 in the maintenance window — it does NOT trigger an immediate patch.255256**For post-upgrade-verify (read-only):**2576. The instance or cluster has returned to `available`.2587. `EngineVersion` matches the target.2598. Performance Insights has data for the pre-upgrade and post-upgrade260 windows.261262**For rollback (PITR to pre-upgrade state):**2636. A pre-upgrade snapshot or a valid PITR window (within the backup264 retention period) exists.2657. The operator understands that rollback means a NEW instance or266 cluster — the endpoint changes. Application connection strings267 must be updated.268269Upgrade failure-mode table (InvalidParameterCombination, parameter/option group gaps, stuck upgrade-failed, MySQL 8.0 auth plugin, pg_hba.conf, planner-statistics regressions, replica lag, global secondary rebuild): moved verbatim to [references/error-handling.md](references/error-handling.md).270Load when a pre-check fails or an upgrade misbehaves.271272### Step 2: OPERATION_COMPLETED or REVIEW_REQUIRED — emit operation plan273274If all pre-checks pass AND the operation is read-only or low-risk275(minor version with `--apply-immediately`, parameter group migration276without static changes, post-upgrade verification), emit277`VERDICT: OPERATION_COMPLETED` (for already-finished operations) or278the executable plan with the CONFIRM gate.279280For operations requiring human review (major upgrade, blue/green281cutover, global database sequencing, rollback via PITR), emit282`VERDICT: REVIEW_REQUIRED` with the specific items to review. The plan283includes:284285- The exact AWS CLI command with all flags populated from the database286 configuration.287- The expected duration (minor 5-20 min; major 20 min to 4 hours;288 blue/green switchover under 60 seconds after 30-90 min of green289 provisioning).290- The expected side-effects (`EngineVersion` changes, instance reboots,291 connections drop, replicas rebuild).292- The CONFIRM gate prompt.293- The rollback plan (snapshot ARN for in-place; blue/green switchback294 for blue/green).295296### Step 3: Execute behind CONFIRM gate297298- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI299 (`modify-db-instance`, `modify-db-cluster`,300 `create-blue-green-deployment`, `switchover-blue-green-deployment`,301 `delete-blue-green-deployment`, `promote-read-replica`,302 `restore-db-instance-to-point-in-time`), emit:303 `CONFIRM: About to <operation> on <db-id> in account <account>304 region <region>. This will <consequence>. Proceed? (yes/no)`.305 Do NOT execute until the operator confirms.306- Capture pre-state for rollback: `aws rds describe-db-instances307 --db-instance-identifier <id> --output json > /tmp/<id>-pre-$(date308 +%s).json` AND a manual snapshot if one does not already exist:309 `aws rds create-db-snapshot --db-instance-identifier <id>310 --db-snapshot-id <id>-pre-upgrade-$(date +%s)`.311- Execute the CLI. For `modify-db-instance`, the API returns312 immediately; the actual upgrade runs asynchronously. The instance313 enters `upgrading` state.314- Monitor the upgrade via RDS events:315 `aws rds describe-events --source-type db-instance316 --source-identifier <id> --start-time $(($(date +%s) - 600))000`.317318### Step 4: Post-verification — OPERATION_COMPLETED319320After the upgrade finishes, run post-verification. ALL checks must pass321for `OPERATION_COMPLETED`.3223231. `describe-db-instances --db-instance-identifier <id>` — confirm324 `EngineVersion` matches the target AND `DBInstanceStatus: available`.3252. `describe-db-snapshots` — confirm the automatic snapshot taken by RDS326 during the upgrade is `available` (this is the post-upgrade backup).3273. For multi-AZ: confirm both the primary and standby are on the target328 version (check `SecondaryAvailabilityZone` and failover status).3294. For Aurora clusters: confirm ALL cluster members (writer and readers)330 report the target `EngineVersion`. Check `AuroraReplicaLag` has331 returned to baseline.3325. For global clusters: confirm ALL secondary Region clusters have been333 rebuilt and report the target version.3346. Application connectivity: test a connection from the application's335 subnet/SG to the database endpoint on the DB port. Verify the336 application driver version connects successfully.3377. Query performance verification: compare Performance Insights338 top-queries latency (post-upgrade) against the pre-upgrade baseline.339 Investigate any query with > 2x latency regression.3408. For PostgreSQL: run `ANALYZE` on all user databases to refresh341 planner statistics. Schedule a `VACUUM ANALYZE` during the next low-342 traffic window.3439. For MySQL/Aurora MySQL 8.0: verify the authentication plugin344 (`caching_sha2_password` vs `mysql_native_password`) matches what345 the application driver expects.346347If ANY verification fails, emit `VERDICT: ERROR` with the failure348details — do not claim OPERATION_COMPLETED. A failed verification349typically means a query regression or an application connectivity350issue; route to the rollback operation if the regression is severe.351352## Output format (per operation)353354```text355OPERATION: <major-upgrade | minor-upgrade | blue-green-upgrade | param-group-migrate | global-upgrade | configure-auto-minor | post-upgrade-verify | rollback>356VERDICT: OPERATION_COMPLETED | REVIEW_REQUIRED357TARGET: <db-id-or-cluster-id> (engine: <current-version> -> <target-version>)358PRE_CHECKS:359 - [PASS] <check description>360 - [REVIEW] <check description> — <item to review>361STEPS:362 1. <CLI command with flags populated>363 2. <wait / monitoring command>364 3. <next step>365POST_VERIFY:366 - [PASS] <verification description>367 - [FAIL] <verification description> — <reason>368NOTES: <rollback plan, monitoring, caveats>369```370371### Worked example — minor-upgrade (in-place, OPERATION_COMPLETED)372373```text374OPERATION: minor-upgrade375VERDICT: OPERATION_COMPLETED376TARGET: prod-orders-db (engine: postgres 14.10 -> 14.11)377PRE_CHECKS:378 - [PASS] DBInstanceStatus: available379 - [PASS] No PendingModifiedValues380 - [PASS] describe-db-engine-versions confirms 14.11 is valid for381 aurora-postgresql on db.r6g.large382 - [PASS] Storage: 800 GB allocated, 350 GB free (44% headroom)383 - [PASS] PerformanceInsightsEnabled: true384 - [PASS] AutoMinorVersionUpgrade: false (operator-initiated)385STEPS:386 1. CONFIRM: About to upgrade prod-orders-db from PostgreSQL 14.10 to387 14.11 in account 111111111111 region us-east-1. This will reboot388 the instance (brief connection drop, ~30 seconds for single-AZ,389 two drops for multi-AZ). Proceed? (yes/no)390 2. aws rds create-db-snapshot \391 --db-instance-identifier prod-orders-db \392 --db-snapshot-id prod-orders-db-pre-14-11-$(date +%s)393 3. aws rds wait db-snapshot-available \394 --db-snapshot-id prod-orders-db-pre-14-11-...395 4. aws rds modify-db-instance \396 --db-instance-identifier prod-orders-db \397 --engine-version 14.11 \398 --apply-immediately399 5. aws rds wait db-instance-available \400 --db-instance-identifier prod-orders-db401POST_VERIFY:402 - [PASS] EngineVersion: 14.11 (confirmed via describe-db-instances)403 - [PASS] DBInstanceStatus: available404 - [PASS] Application connectivity: psql connect from app subnet OK405 - [PASS] Performance Insights: top-10 query latency within +/- 10%406 of pre-upgrade baseline407NOTES:408 - Minor version upgrade completed in 12 minutes. Single-AZ, one409 connection drop of ~25 seconds.410 - PostgreSQL ANALYZE scheduled for the next low-traffic window411 (03:00 UTC) to refresh planner statistics.412 - Rollback: restore from snapshot prod-orders-db-pre-14-11-...413 if any regression is detected. This creates a NEW instance —414 endpoint will change.415```416417### Worked example — major-upgrade via blue/green (REVIEW_REQUIRED)418419Full worked example (Aurora MySQL 5.7 to 8.0 blue/green with driver and switchover review items): moved verbatim to [references/worked-examples.md](references/worked-examples.md).420Apply the Output format template above to reproduce it.421422### Worked example — global database upgrade (condensed)423424Condensed worked example (global database upgrade with Region sequencing): moved verbatim to [references/worked-examples.md](references/worked-examples.md).425Apply the Output format template above to reproduce it.426427### Worked example — rollback via PITR (condensed)428429Condensed worked example (rollback via PITR with data-loss review items): moved verbatim to [references/worked-examples.md](references/worked-examples.md).430Apply the Output format template above to reproduce it.431432## Anti-Patterns — NEVER433434- NEVER attempt a major version upgrade without a pre-upgrade manual435 snapshot. The automatic snapshot RDS takes is harder to locate under436 incident pressure. A named manual snapshot is the rollback anchor.437438- NEVER attach a parameter group from the wrong engine family. Aurora439 MySQL 5.7 param groups are NOT compatible with 8.0 — the instance440 will boot with defaults, silently dropping custom settings.441442- NEVER skip major versions in an upgrade path. PostgreSQL 13 to 15443 requires going through 14. Aurora MySQL 5.6 to 8.0 requires 5.7444 first. `describe-db-engine-versions` lists valid targets.445446- NEVER upgrade a read replica before its source, or a global cluster447 secondary before the primary. Always upgrade source/primary first.448449- NEVER assume `AutoMinorVersionUpgrade: true` handles major versions.450 It only applies to minor patches within the same major. Major451 upgrades always require explicit opt-in.452453- NEVER run an in-place major upgrade on production without considering454 blue/green deploy first. In-place upgrades have a 20-minute to 4-hour455 `upgrading` window. Blue/green provides a sub-60-second switchover456 with a rollback safety net.457458- NEVER delete the blue environment immediately after a blue/green459 switchover. Keep it 24-72 hours as a rollback safety net.460461- NEVER forget to run `ANALYZE` after a PostgreSQL major upgrade.462 `pg_upgrade` rebuilds planner statistics; without `ANALYZE`, query463 plans can be 10-100x slower.464465- NEVER assume the application driver supports the target version.466 MySQL 8.0's `caching_sha2_password` breaks older connectors.467 PostgreSQL 14+ tightened `pg_hba.conf` defaults. Verify BEFORE.468469- NEVER rely on "downgrade" as rollback. RDS does not support in-place470 engine downgrades. The ONLY rollback is PITR/snapshot restore —471 which creates a NEW instance with a NEW endpoint.472473- NEVER ignore `PendingModifiedValues`. A pending storage, instance474 class, or parameter change that fires during the upgrade causes475 unpredictable behavior. Resolve before upgrading.476477- NEVER upgrade Aurora Serverless v1 in-place to a major version —478 restore a snapshot to Serverless v2 instead.479480- NEVER auto-execute a state-changing RDS CLI without the CONFIRM gate.481 Engine upgrades, blue/green switchovers, and PITR restores have482 downtime and data-loss side effects.483484- NEVER overlook `SupportsGlobalDatabases` when upgrading a global485 cluster member. Not all engine versions support global databases.486487## Pre-flight safety checks (run before any remediation CLI)488489Four pre-flight safety checks (CONFIRM gate, pre-state capture with snapshot, engine/param/option/driver validation, blue/green preference): moved verbatim to [references/diagnostic-commands.md](references/diagnostic-commands.md).490Defense-in-depth before any remediation CLI.491492## Recent AWS features (2024-2026)493494Eight recent AWS features 2024-2026 (Blue/Green GA, Aurora MySQL 3.x auth, PostgreSQL 15, gp3, Serverless v2, global sequencing, RDS Extended Support, Performance Insights retention): moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).495Consult before citing feature limits or recency.496497## References (load on demand)498499- [references/worked-examples.md](references/worked-examples.md) — Secondary worked examples (blue/green major upgrade, global database upgrade, rollback via PITR).500- [references/advanced-patterns.md](references/advanced-patterns.md) — Step 0 non-obvious upgrade behaviors, recent AWS features (2024-2026).501- [references/error-handling.md](references/error-handling.md) — Upgrade failure-mode table for diagnosis.502- [references/diagnostic-commands.md](references/diagnostic-commands.md) — Live-account pre-flight commands, pre-flight safety checks.503- [references/diagnostic-procedures.md](references/diagnostic-procedures.md) — Failure-diagnosis procedures per archetype.504- [references/upgrade-paths-and-compatibility.md](references/upgrade-paths-and-compatibility.md) — Version paths, parameter/option group families, driver compatibility.505506## Domain507508AWS CloudOps / RDS and Aurora Engine Upgrade, Major Version Cut-over &509Zero-Downtime Blue/Green Deploy.510511## AWS documentation512513- **Amazon RDS User Guide** — https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Welcome.html514- **Upgrading a DB instance engine version** — https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html515- **Major version upgrades** — https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.MajorVersionUpgrade.html516- **Minor version upgrades** — https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.MinorVersionUpgrade.html517- **Blue/Green Deployments** — https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments.html518- **Aurora MySQL upgrade paths** — https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.Upgrades.html519- **Aurora PostgreSQL upgrade paths** — https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.Upgrades.html520- **Global database upgrades** — https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database-upgrade.html521- **RDS API Reference** — https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/522- **Point-in-time recovery** — https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIT.html