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.
This works for eu-central-1 as well as the various letter zones. (I don't have enough rep to reply to the sed answer above)
ec2-metadata --availability-zone | sed 's/[a-z]$//'