If you enable remote root login, be aware that it is less secure than relying on key pairs and a secondary user. Identify Amazon Linux images. Each image contains a unique /etc/image-id file that identifies it. This file contains the following information about the image:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/amazon-linux-ami-basics.html