Find the instance id of an AWS EC2 instance within that EC2 machine
There are multiple ways to retrieve the instance id and metadata of an AWS EC2 instance within that instance
You can use command line tools like ec2metadata or ec2-metadata, or make an HTTP call to retrieve the instance id and other metadata