assign custom host name to ec2 instances

When deploying an autoscaling group I want to be able to add custom hostnames to the instances for both initial deploy and scaling up and down.

hostnames would be something like app-server01 app-server02. Then when we scale up it would increment 03/04/etc.

Thanks,
Eric