# adding termination support to the ec2 module

**URL:** <https://forum.ansible.com/t/adding-termination-support-to-the-ec2-module/13000>\
**Category:** Ansible Project\
**Created:** [June 21, 2013, 12:08am UTC](https://forum.ansible.com/t/adding-termination-support-to-the-ec2-module/13000 "2013-06-21T00:08:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Jarvis](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@John\_Jarvis](https://forum.ansible.com/u/John_Jarvis)\
**Post date:** [June 21, 2013, 12:08am UTC](https://forum.ansible.com/t/adding-termination-support-to-the-ec2-module/13000/1 "2013-06-21T00:08:38Z")

</div>

I talked to lwade briefly on IRC about this and thought it might be useful for other people using ec2.  
I created a new argument for ec2 that takes the ec2.instances that were provisioned and terminates them. This is useful for automated testing where you want to bring up an instance, configure it, run some tests and then tear it down.

[https://github.com/ansible/ansible/pull/3293](https://github.com/ansible/ansible/pull/3293)

-John
