Run, from within the instance:
curl http://169.254.169.254/latest/meta-data/
It will list available properties. For instance, to get current instance type:
curl http://169.254.169.254/latest/meta-data/instance-type
Reference: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html