I have not tried this in the EU zone, but it seems to work well in the US one:
root@domU-12-31-39-03-44-37:~# ZONE=`curl http://169.254.169.254/latest/meta-data/placement/availability-zone` root@domU-12-31-39-03-44-37:~# echo $ZONE us-east-1c
I have not tried this in the EU zone, but it seems to work well in the US one:
root@domU- 12-31-39- 03-44-37: ~# ZONE=`curl http:// 169.254. 169.254/ latest/ meta-data/ placement/ availability- zone` 12-31-39- 03-44-37: ~# echo $ZONE
root@domU-
us-east-1c