I have setup Postgres RDS instance on AWS. Made it publicly accessible and security group allows all traffic inside and outside.
However I still can't connect from outside network (using DataGrip).
Connection to jdbc:postgresql://name.abcd.eu-west-1.rds.amazonaws.com :5432/mydb failed. Host name.abcd.eu-west-1.rds.amazonaws.com is unknown. [08001] The connection attempt failed.
I copied the endpoint from AWS console and I'm using the username and password I entered when creating the instance.
What am I doing wrong?