To learn how to reset a forgotten root user password, see Resetting lost or forgotten passwords or access keys for AWS. To change the password for the root user Use your AWS account email address and password to sign in to the AWS Management Console as the AWS account root user.
https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_passwords_change-root.html

