16

I have created 3 databases in one RDS DB instance. The owner of these databases is user postgres. I'd like to create the new power user. When I am trying to create it I receive: "User 'postgres' has no privileges to edit users" But it is the one user which I can use. How I can create the new user?

1 Answer 1

36

It looks like you need to use CREATE ROLE and assign the rds_superuser role to the new user. It's documented here http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.PostgreSQL.CommonDBATasks.html#Appendix.PostgreSQL.CommonDBATasks.Roles

and I'll paste the instructions too:

postgres=> create role testuser with password 'testuser' login;   
CREATE ROLE   
postgres=> grant rds_superuser to testuser;   
GRANT ROLE   
postgres=> 
Sign up to request clarification or add additional context in comments.

3 Comments

grant rds_superuser to testuser; doesn't seem to work
Both commands do work on RDS Aurora PostgreSQL 16.1.
This is what I was looking for

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.