Interview Prep/AWS/RDS, Aurora and DynamoDB

Restoring a snapshot fails: `InvalidParameterCombination: Cannot find version 11.22 for postgres`.

BeginnerTroubleshootingRDS, Aurora and DynamoDB
Answer

Likely causes → The engine version has reached end of standard support or is not offered in this Region any more, so you cannot create new instances on it without Extended Support or an upgrade.

Diagnose →

aws rds describe-db-engine-versions --engine postgres --query 'DBEngineVersions[].EngineVersion' --output text
aws rds describe-db-snapshots --db-snapshot-identifier snap-1 --query 'DBSnapshots[].EngineVersion'

Fix →

  1. Restore with a supported version, specifying --engine-version if the restore path allows it
  2. Or upgrade the snapshot first: aws rds modify-db-snapshot --db-snapshot-identifier snap-1 --engine-version 12.22 (RDS PostgreSQL supports upgrading DB snapshots), then upgrade the restored instance further

Prevent → Track engine end-of-life dates, upgrade on a schedule, and run restore tests regularly.

aws All AWS questions Roadmap: AWS core services

More on RDS, Aurora and DynamoDB