I'm new to AWS Elastic Beanstalk. I can connect to the database.However, when I try to run database migrations for creating a table in AWS RDS. I keep getting this error:
ERROR: no pg_hba.conf entry for host "xx.xx.xxx.xx", user "postgres", database "postgres", no encryption
I'm using node js with PostgreSQL. I've made changes found online by making changes in the pg_hba.conf
file. I've also added listen_addresses = '*'
.
Could this be a AWS RDS issue with VPC/Security Groups or something i'm missing ?
I want migrations to run
Update : fixed it , the issue was in inbound connections that wasn’t allowing migrations to run.