# assign custom host name to ec2 instances

**URL:** <https://forum.ansible.com/t/assign-custom-host-name-to-ec2-instances/22276>\
**Category:** Ansible Project\
**Created:** [August 11, 2016, 4:18pm UTC](https://forum.ansible.com/t/assign-custom-host-name-to-ec2-instances/22276 "2016-08-11T16:18:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric\_skaggs1](https://avatars.discourse-cdn.com/v4/letter/e/258eb7/32.png) [@eric\_skaggs1](https://forum.ansible.com/u/eric_skaggs1)\
**Post date:** [August 11, 2016, 4:18pm UTC](https://forum.ansible.com/t/assign-custom-host-name-to-ec2-instances/22276/1 "2016-08-11T16:18:23Z")

</div>

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
