I\'m logged in with a superuser account and this is the process I\'m doing:
1-> CREATE ROLE test WITH IN ROLE testroles PASSWORD \'testpasswd\' 2-> CREATE S
I was facing the same issue. To resolve this, I logged in with the newly created role and created the database. Somehow, grant does not work in RDS Postgres.