Changes to set EC2 instance name during hostname resolution