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.
If you have jq installed, you can also go about it (probably the most "graceful" method) this way:
curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | jq -c -r .region
This simply returns the raw value of "region" without any pretty-printing or other formatting. Reference: AWS Forum