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.
Was also looking for a solution to find region from the instance and here is my pure Bash solution:
az=$(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone) region=${az:0:${#az}-1}
unless there are regions where AZ has more than two letters, which I'm not aware of.