After an Aurora failover, writes fail for 10 minutes with "ERROR: cannot execute INSERT in a read-only transaction", even though the cluster shows a healthy new writer.
IntermediateTroubleshootingCloud provider issues
Answer
Likely causes → The app is still connected to the old writer, which came back as a reader. Its pool keeps those connections, or the client cached the old IP behind the cluster endpoint. Pointing writes at an instance endpoint or the reader endpoint by mistake causes the same error.
Diagnose →
aws rds describe-db-clusters --db-cluster-identifier prod --query 'DBClusters[0].DBClusterMembers'
dig +short prod.cluster-abc123.ap-south-1.rds.amazonaws.com
Check the app's connection string and pool settings.
Fix → Recycle the connection pools (rolling restart). Make sure writes use the cluster (writer) endpoint.
Prevent → Configure the pool to drop connections on read-only errors and set a short maxLifetime, use a failover-aware driver (AWS Advanced JDBC Wrapper) or RDS Proxy, keep JVM DNS TTL low, and test failover regularly with aws rds failover-db-cluster.
More on Cloud provider issues
A deploy script and several services start failing with "An error occurred (ThrottlingException) when calling the DescribeInstances operation: Rate exceeded".BeginnerThe Auto Scaling group can't launch new instances during a traffic spike; activity history says "We currently do not have sufficient c6i.4xlarge capacity in the Availability Zone you requested."BeginnerScaling out fails with "You have requested more vCPU capacity than your current vCPU limit of 256 allows for the instance bucket that the specified instance type belongs to."BeginnerThe AWS Health Dashboard reports increased error rates in `use1-az4`, and your ALB targets in that AZ are timing out intermittently.IntermediateServices in private subnets randomly fail outbound calls to a partner API; CloudWatch shows `ErrorPortAllocation` rising on the NAT gateway.AdvancedA data pipeline writing millions of small objects to S3 starts failing with "503 Slow Down: Please reduce your request rate."Intermediate