Got yourself locked out but you still have programmatic access? Reset your password from the aws-cli:
$ aws iam update-login-profile --user-name jsmith --password sesame --password-reset-required
From here:
https://lustforge.com/2016/07/08/aws-cli-password-reset/