Interview Prep/AWS/RDS, Aurora and DynamoDB

Creating a DB fails: `InsufficientDBInstanceCapacity: Cannot create a db.r6g.4xlarge instance in us-east-1d`.

BeginnerTroubleshootingRDS, Aurora and DynamoDB
Answer

Likely causes → The instance class has no capacity in that AZ right now, or the class is not offered there at all.

Diagnose →

aws rds describe-orderable-db-instance-options --engine postgres --db-instance-class db.r6g.4xlarge \
  --query 'OrderableDBInstanceOptions[].AvailabilityZones[].Name' --output text

Fix →

  1. Retry in another AZ, or make sure the subnet group has subnets in AZs that offer the class
  2. Pick a sibling class (db.r7g, db.r6i)

Prevent → Use DB subnet groups that cover at least three AZs, and avoid pinning --availability-zone unless you need to.

aws All AWS questions Roadmap: AWS core services

More on RDS, Aurora and DynamoDB