I want to add Postgres to separate ec2 instance and connect this to other instances (those are running spring boot application), how to do this?