# ec2\_vpc route\_tables tags not created

**URL:** <https://forum.ansible.com/t/ec2-vpc-route-tables-tags-not-created/18779>\
**Category:** Ansible Project\
**Created:** [July 16, 2015, 3:17am UTC](https://forum.ansible.com/t/ec2-vpc-route-tables-tags-not-created/18779 "2015-07-16T03:17:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erik\_Steffl](https://avatars.discourse-cdn.com/v4/letter/e/9de0a6/32.png) [@Erik\_Steffl](https://forum.ansible.com/u/Erik_Steffl)\
**Post date:** [July 16, 2015, 3:17am UTC](https://forum.ansible.com/t/ec2-vpc-route-tables-tags-not-created/18779/1 "2015-07-16T03:17:37Z")

</div>

Creating VPC using ec2\_vpc module. Have a public net so adding a routing table:

“route\_tables”: [  
{  
“subnets”: [“10.0.0.0/24”],  
“routes”: [{ “dest”: “0.0.0.0/0”, “gw”: “igw” }],  
“resource\_tags”: { “Name”: “way\_out” }  
}  
],

The route is created but it does not have any tags (it has empty Name tag which is always created by Amazon). There are no error messages. Similar resource\_tags work fine for the vpc and subnets. Also tried to add another tag (in additon to Name) but that one didn’t show up in the created route table either.

Going by the docs at [http://docs.ansible.com/ec2\_vpc\_module.html](http://docs.ansible.com/ec2_vpc_module.html) which say: “A dictionary array of route tables to add of the form: { subnets: [172.22.2.0/24, 172.22.3.0/24,], routes: [{ dest: 0.0.0.0/0, gw: igw},], resource\_tags: … }.”

Any ideas what’s going on?

Thanks!

erik

---

<div class="post-metadata">

**Author:** ![Erik\_Steffl](https://avatars.discourse-cdn.com/v4/letter/e/9de0a6/32.png) [@Erik\_Steffl](https://forum.ansible.com/u/Erik_Steffl)\
**Post date:** [July 17, 2015, 9:25pm UTC](https://forum.ansible.com/t/ec2-vpc-route-tables-tags-not-created/18779/2 "2015-07-17T21:25:10Z")

</div>

checked the code, the latest released version of Ansible 1.9.2 does not have code to create tags for route\_tables. The devel branch (guess that’s 2.0) does have code to create tags for rout\_tables.

BTW the docs are a bit confusing in this regard, they don’t state the version so I assumed that the docs apply to the released version. Sometime they explicitly mention which version something was added in but not for the resource\_tags in route\_tables.

erik
