Check the: /etc/sudoers.d/cloud-init file
/etc/sudoers.d/cloud-init
If the ec2-user default user is there --> delete the file.
ec2-user default user
Last updated 3 years ago