Fix EC2 hostname attribute.