# ec2\_asg: attach existing instance

**URL:** <https://forum.ansible.com/t/ec2-asg-attach-existing-instance/25830>\
**Category:** Ansible Project\
**Created:** [October 26, 2017, 12:00pm UTC](https://forum.ansible.com/t/ec2-asg-attach-existing-instance/25830 "2017-10-26T12:00:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pantelis\_Karamolegko](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@Pantelis\_Karamolegko](https://forum.ansible.com/u/Pantelis_Karamolegko)\
**Post date:** [October 26, 2017, 12:00pm UTC](https://forum.ansible.com/t/ec2-asg-attach-existing-instance/25830/1 "2017-10-26T12:00:39Z")

</div>

Is it possible to attach an existing (running) instance when creating a new auto scaling group?  
The [module documentation](http://docs.ansible.com/ansible/latest/ec2_asg_module.html) is not very straightforward on this.  
Is the **replace\_instances** option supposed to take care of this?

---

<div class="post-metadata">

**Author:** ![Pantelis\_Karamolegko](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@Pantelis\_Karamolegko](https://forum.ansible.com/u/Pantelis_Karamolegko)\
**Post date:** [October 26, 2017, 12:02pm UTC](https://forum.ansible.com/t/ec2-asg-attach-existing-instance/25830/2 "2017-10-26T12:02:18Z")

</div>

Please also check [this issue](https://stackoverflow.com/questions/46947304/ansible-ec2-asg-module-creates-extra-instance).
