# cloudformation module support for AWS Security Token

**URL:** <https://forum.ansible.com/t/cloudformation-module-support-for-aws-security-token/16331>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [September 25, 2014, 6:32am UTC](https://forum.ansible.com/t/cloudformation-module-support-for-aws-security-token/16331 "2014-09-25T06:32:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mick\_Bass](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@Mick\_Bass](https://forum.ansible.com/u/Mick_Bass)\
**Post date:** [September 25, 2014, 6:32am UTC](https://forum.ansible.com/t/cloudformation-module-support-for-aws-security-token/16331/1 "2014-09-25T06:32:57Z")

</div>

We have been using the cloudformation module for quite some time, and now need to use it with STS temporary credentials, but the cloudformation module (among others) does not appear to support the AWS Security Token.

Are you open to a pull request to extend get\_ec2\_creds() in module\_utils/ec2.py to include the security token, and to update all consuming modules, including cloudformation, to receive aws\_security\_token if it is set.

Best,

- Mick Bass  
47Lining

---

<div class="post-metadata">

**Author:** ![Mick\_Bass](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@Mick\_Bass](https://forum.ansible.com/u/Mick_Bass)\
**Post date:** [September 25, 2014, 4:04pm UTC](https://forum.ansible.com/t/cloudformation-module-support-for-aws-security-token/16331/2 "2014-09-25T16:04:08Z")

</div>

Not sure if it would have been more appropriate to have posted to Ansible Development. Still getting our bearings here. Any steer appreciated - if there’s a better way of approaching getting support for Roles / STS in place within the Ansible cloud modules (and cloudformation in particular, our immediate need) please let us know.

Best,

- Mick

---

<div class="post-metadata">

**Author:** ![Mick\_Bass](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@Mick\_Bass](https://forum.ansible.com/u/Mick_Bass)\
**Post date:** [September 25, 2014, 4:23pm UTC](https://forum.ansible.com/t/cloudformation-module-support-for-aws-security-token/16331/3 "2014-09-25T16:23:57Z")

</div>

OK, I’ve just found and reviewed the guidance in [Contributing Code (Features or Bugfixes)](http://docs.ansible.com/community.html#contributing-code-features-or-bugfixes) so I’ll move this discussion over to the [Ansible Development](https://groups.google.com/forum/#!forum/ansible-devel) list. Thanks!
