Pull the hostname from AWS metadata service

- going a bit further to get the automation right.