Is there a way to look up the region of an instance from within the instance?
I\'m looking for something similar to the method of finding the instance id.
There is one more way of achieving that:
REGION=`curl http://169.254.169.254/latest/dynamic/instance-identity/document|grep region|awk -F\" '{print $4}'` echo $REGION us-east-1