Here you need to use the username ubuntu if you are using ubuntu machine and for rest, you need to use ec2-user in aws. then it will work and for more details please check the screenshots that will help you.
Then it will ask for user name then use the username according to your machine.