The default user name is determined by the AMI that was specified when we launch the instances. These are the commonly used AMIs along with the default user names.
|Image Name||User Name|
|Amazon Linux2/ Amazon Linux AMI||ec2-user|
|None of the Above||check with the AMI provider|