# EC2 Rolling Deploy with an ASG

**URL:** <https://forum.ansible.com/t/ec2-rolling-deploy-with-an-asg/16138>\
**Category:** Ansible Project\
**Created:** [September 7, 2014, 6:08pm UTC](https://forum.ansible.com/t/ec2-rolling-deploy-with-an-asg/16138 "2014-09-07T18:08:32Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![James\_Martin1](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@James\_Martin1](https://forum.ansible.com/u/James_Martin1)\
**Post date:** [November 24, 2014, 5:49pm UTC](https://forum.ansible.com/t/ec2-rolling-deploy-with-an-asg/16138/21 "2014-11-24T17:49:45Z")

</div>

Hmm… I wonder if we need to have the ec2\_asg module to wait for the healthCheckGracePeriod to expire before checking the instance health (assuming that it is an ELB health check type). Even with a health check grace period of one, there is a chance that the instance can become healthy in that time. Can you please open a bug on [github.com/ansible/ansible-modules-core](http://github.com/ansible/ansible-modules-core) to track this?

Thanks,

James

---

<div class="post-metadata">

**Author:** ![Ben\_Whaley](https://avatars.discourse-cdn.com/v4/letter/b/7feea3/32.png) [@Ben\_Whaley](https://forum.ansible.com/u/Ben_Whaley)\
**Post date:** [November 24, 2014, 5:49pm UTC](https://forum.ansible.com/t/ec2-rolling-deploy-with-an-asg/16138/22 "2014-11-24T17:49:48Z")

</div>

Oops, please use this link for the code instead.

[https://gist.github.com/bwhaley/eee6a0f61636862515aa](https://gist.github.com/bwhaley/eee6a0f61636862515aa)

---

<div class="post-metadata">

**Author:** ![Ben\_Whaley](https://avatars.discourse-cdn.com/v4/letter/b/7feea3/32.png) [@Ben\_Whaley](https://forum.ansible.com/u/Ben_Whaley)\
**Post date:** [November 24, 2014, 5:54pm UTC](https://forum.ansible.com/t/ec2-rolling-deploy-with-an-asg/16138/23 "2014-11-24T17:54:09Z")

</div>

Opened issue 383. Thanks again.

[https://github.com/ansible/ansible-modules-core/issues/383](https://github.com/ansible/ansible-modules-core/issues/383)

- Ben

[Previous page](https://forum.ansible.com/t/ec2-rolling-deploy-with-an-asg/16138.md?page=1)
