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 →
- Retry in another AZ, or make sure the subnet group has subnets in AZs that offer the class
- 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.
More on RDS, Aurora and DynamoDB
The app cannot connect to RDS: `psql: error: connection to server at "mydb.abc.us-east-1.rds.amazonaws.com" (10.0.3.12), port 5432 failed: Connection timed out`.Beginner`FATAL: password authentication failed for user "postgres"` and nobody knows the master password.Beginner`FATAL: no pg_hba.conf entry for host "10.0.1.25", user "app", database "orders", no encryption`.IntermediateApp logs show `FATAL: remaining connection slots are reserved for non-replication superuser connections` (or MySQL `ERROR 1040 (HY000): Too many connections`).IntermediateRDS status shows `storage-full` and writes fail.IntermediateA read replica's `ReplicaLag` keeps growing and reports show stale data.Intermediate