Issue
I looked at attributes of the EC2 instance, but did not get a clear attribute value that identifies the same.
I also, saw the following discussion, but Im wondering whether identifying the os/platform has been simplified by aws since this disscusion. How to find OS of an EC2 instance using AWS CLI
Solution
You can check through console by following procedure.
Select instance => Action => Instance setting => Get instance screenshot .
this will show the OS of your instance.
Answered By - user9412841 Answer Checked By - Willingham (WPSolving Volunteer)