52

Resetting the RDS master user's password is simple enough, but how do you find your master users username?

Eric Hammond
  • 10,901
  • 34
  • 56
mkirk
  • 643
  • 1
  • 5
  • 7

9 Answers9

38

The master username is now listed in the RDS Dashboard.

  1. Select the "Instances" listing and expand the DB instance.
  2. Press the looking glass tab on the left.
  3. The master username is listed in the left column.

Hope this helps!

joakimcs
  • 481
  • 1
  • 4
  • 4
  • 2
    Nice answer as it doesn't require the API. I might add that label/field name in the GUI is not 'Master User' but simply 'Username', which (as of this writing) currently appears under the 'DB Name'. – Andrew S Mar 29 '16 at 21:34
  • 2
    In 2017 update, the master user name is now under RDS > Instances > Connect > Master username – Raptor Oct 25 '17 at 03:47
  • 13
    As of right now, the master user name is under RDS > Instances > Configuration > Master username. – Captain Delano May 01 '19 at 14:54
  • I cannot find rds instance tab in my aws console. Can anyone share the instance url? – Sazzad Hissain Khan Mar 23 '20 at 05:52
  • 7
    In 2020, the master user name is now under RDS > Databases > Choose Desired Cluster or Database > Configuration > Master username – MillerMedia Jul 26 '20 at 04:50
37

The master user name can be recovered with the rds-describe-db-instances command.

If you are using aws cli-2, command shall become :

aws rds describe-db-instances --region ap-south-1
Blaze
  • 103
  • 3
Jan Fabry
  • 836
  • 1
  • 10
  • 18
18

It is 2019 now. It is 'Databases' on the sidebar, 'Configuration' on the navigation bar. And look for username.

Sidebar

Navigation bar

kklw
  • 289
  • 2
  • 3
8

With the new updated RDS UI, the username is present in the Details section of the Instance Information screen.

  1. From the List of your running Instances, click an instance name to see information about the instance.
  2. See the "Details" section of the information screen.

rds instance info screen

scroll down in that screen to see the "Details" section.

your connection information is shown here

6

Here is the command that you can use to get the master username of your RDS:

aws --profile=prod rds describe-db-instances
    --region us-east-1
    --db-instance-identifier YOUR-RDS-IDENTIFIER-HERE
    --query 'DBInstances[*].MasterUsername'

Note: Replace the prod with your aws profile and YOUR-RDS-IDENTIFIER-HERE with your rds instance identifier

It will give you the master username like this:

[
    "root"
]

Hope that might help future reader.

arbabnazar
  • 499
  • 6
  • 9
  • the above methods using the UI (including looking at the snapshot) did not work for me but this did. I didn't provide the `--profile-prod` because I wasn't sure what profile I had and it still worked as expected. – almel May 07 '20 at 23:08
  • All of the answers that use the console become out of date so quickly (it's why i'm here today). The API will work for years. Do it this way everybody. – andrew lorien Oct 01 '20 at 04:33
2

I do not know how to directly find the aws admin username in 2019 AWS, however, you can see it in a snapshot. Just follow:

Main RDS console > Snapshots > A snapshot of your database > Details > Master username

1

Using AWS CLI to get all Instance names + the respective Master users:

aws rds describe-db-instances | grep -e \"DBInstanceId -e Master
Lydon
  • 11
  • 2
0
SELECT grantee 
FROM  sys.dba_role_privs 
WHERE granted_role='RDS_MASTER_ROLE' 
AND admin_option ='NO';
John K. N.
  • 1,955
  • 1
  • 16
  • 26
0

TL;DR

Select the database and click top-right on modify

Here is the description how to do it: Breadcrumb on RDS Databases

The third field is the password.

Timo
  • 103
  • 6