# no subnet id in ec2\_vpc\_subnet?

**URL:** <https://forum.ansible.com/t/no-subnet-id-in-ec2-vpc-subnet/27467>\
**Category:** Ansible Project\
**Created:** [May 6, 2018, 6:32pm UTC](https://forum.ansible.com/t/no-subnet-id-in-ec2-vpc-subnet/27467 "2018-05-06T18:32:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [May 6, 2018, 6:32pm UTC](https://forum.ansible.com/t/no-subnet-id-in-ec2-vpc-subnet/27467/1 "2018-05-06T18:32:25Z")

</div>

The doco for ec2\_vpc\_subnet shows no ID attribute for a subnet, except in the return value. I tried a few obvious variants with no luck, just in case it had just been omitted from the doco.

Without an ID attribute, am I supposed to use the (vpc\_id, cidr) tuple? That seems very clunky compared to just using a unique ID.

Is there a better way?

Regards, K.
