Use http://169.254.169.254/latest/meta-data/local-hostname rather than public-hostname because we use VPC and public-hostname is not available