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.
For the sed and curl solution it looks like format has changed a bit. For me works
curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | sed -n 's/ "region" : "\(.*\)"[,]/\1/p'