Are you running postgres on the same EC2 instance as your transactor?
Generally, the inability to connect is due to configuration of host
and alt-host
values in the transactor properties file.
See the response here: Unable to connect to remote datomic (mysql)