Outputs a valid hostname for a given AWS instance