CmdID / aws / aws lightsail
aws lightsail get-relational-database-master-user-password
Returns the current, previous, or pending versions of the master user password for a Lightsail database. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--password-versionThe password version to return.--relational-database-nameThe name of your database for which to get the master user password.