The configuration is very similar to the one when everything in the same server (the EC2). You should point to the RDS dns name (instead IPs) and use the very same user and password you set when you created the RDS instance. In EC2 you can install also the PSQL client to access via command line to your RDS. It's importan to consider the version of the Postgres you installed in the EC2, because RDS it's always updated and it doesn't work if you try to connect with a different version of PSQL client.
I had a problem when backing up the database from the browser (odoo8.0), because previously in EC2 I had PSQL 9.3, while RDS was 9.5, so I had to install postgres 9.5 in the EC2, and also reset the link for pg_dump
pg_dump -> /usr/lib/postgresql/9.5/bin/pg_dump
This is part of the odoo-USER1-server.conf.
[options]; This is the password that allows database operations:
admin_passwd = ADMINPASS_FOR_ODOO
db_host = EXAMPLERDSDNSNAME.ccebtp93ib46.us-west-2.rds.amazonaws.com
db_port = 5432
db_user = USER1
db_password = PASSUSER1
logfile = /var/log/USER1/odoo-USER1-server.log
addons_path=/opt/MOREADDONS/addons1addons_path=/opt/odoo/addons,/opt/MOREADDONS/addons1,/opt/MOREADDONS/addons2,/opt/MOREADDONS/addons3
You can have also have more than one Odoo instance within the same EC2 and the same RDS by setting different configuration files, like odoo1-server.conf, odoo2-server.conf, odooN-server.conf and using different RDS users in each file. The effect is that each odoo enviroment will only see the databases created with that specific user.