`FATAL: no pg_hba.conf entry for host "10.0.1.25", user "app", database "orders", no encryption`.
IntermediateTroubleshootingRDS, Aurora and DynamoDB
Answer
Likely causes → The parameter group sets rds.force_ssl=1 (the default for RDS PostgreSQL 15+), and the client connects without TLS. You cannot edit pg_hba.conf on RDS; it is controlled through parameters.
Diagnose →
aws rds describe-db-parameters --db-parameter-group-name pg16-app \
--query "Parameters[?ParameterName=='rds.force_ssl']"
Fix →
- Connect with TLS:
psql "host=... dbname=orders user=app sslmode=verify-full sslrootcert=global-bundle.pem" - Download the CA bundle:
curl -O https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem - Set
sslmode=requireorverify-fullin the app's JDBC or driver URL
Prevent → Require TLS everywhere, and ship the RDS CA bundle in your base images.
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.BeginnerApp 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.IntermediateAfter a Multi-AZ failover, some app servers keep failing with connection errors for 10+ minutes while others recover in a minute.Advanced