# ec2 module and new longer EC2 instance ID format

**URL:** <https://forum.ansible.com/t/ec2-module-and-new-longer-ec2-instance-id-format/20364>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [January 27, 2016, 8:34pm UTC](https://forum.ansible.com/t/ec2-module-and-new-longer-ec2-instance-id-format/20364 "2016-01-27T20:34:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gavin\_Davies](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@Gavin\_Davies](https://forum.ansible.com/u/Gavin_Davies)\
**Post date:** [January 27, 2016, 8:34pm UTC](https://forum.ansible.com/t/ec2-module-and-new-longer-ec2-instance-id-format/20364/1 "2016-01-27T20:34:22Z")

</div>

Hello,

Recently, AWS announced they would [change to a longer EC2 instance ID format](https://aws.amazon.com/blogs/aws/heads-up-longer-ec2-ebs-resource-ids-coming-in-2016/). I opted in for all regions and any nodes I create manually through the AWS console have the new, longer format.

The nodes I create through the Ansible EC2 module, however, still have the old, short format.

Is this an issue with the AWS API, with Ansible, or something I need to configure?

Thanks,

- Gavin

---

<div class="post-metadata">

**Author:** ![Rohit\_Dubey](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@Rohit\_Dubey](https://forum.ansible.com/u/Rohit_Dubey)\
**Post date:** [March 15, 2016, 5:44am UTC](https://forum.ansible.com/t/ec2-module-and-new-longer-ec2-instance-id-format/20364/2 "2016-03-15T05:44:28Z")

</div>

We are actively using ansible ec2api in our playbooks as well . It will be great if some body has an official word on this .

---

<div class="post-metadata">

**Author:** ![a\_akin](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@a\_akin](https://forum.ansible.com/u/a_akin)\
**Post date:** [March 16, 2016, 2:17am UTC](https://forum.ansible.com/t/ec2-module-and-new-longer-ec2-instance-id-format/20364/3 "2016-03-16T02:17:40Z")

</div>

I am on Ansible 2.0 and instances created through the Ansible module have the longer EC2 instance ID format.
