How to Rename a user in Redshift database

Below is the command to rename a redshift database user:

alter user username rename to new_username;
See also  How to determine the number of objects in an s3 bucket