Error while connecting database from aws postgresql 10.1

That is too old. Follow the official guide to install Discourse and you will have a working Discourse running 2.4.0. To run with RDS follow Configure Discourse to use a separate PostgreSQL server.

5 Likes