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 are OK with using jq, you can run the following:
jq
curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | jq .region -r
I guess it's the cleanest way.