Using Console
Using CLI
YOUR_CLUSTER_IDENTIFIER
with the actual identifier of your Redshift cluster and NEW_MASTER_USERNAME
with the desired non-default master username.Step 4: You will be prompted to provide the master user password for confirmation. Enter the master user password when prompted.Step 5: Verify that the master username has been successfully changed by describing the cluster again:Using Python
your_aws_region
, your_redshift_cluster_identifier
, and new_master_username
with your actual AWS region, Redshift cluster identifier, and the desired new master username.