# ec2\_vpc\_route\_table check mode

**URL:** <https://forum.ansible.com/t/ec2-vpc-route-table-check-mode/24851>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [June 29, 2017, 4:32pm UTC](https://forum.ansible.com/t/ec2-vpc-route-table-check-mode/24851 "2017-06-29T16:32:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Paine1](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@Tom\_Paine1](https://forum.ansible.com/u/Tom_Paine1)\
**Post date:** [June 29, 2017, 4:32pm UTC](https://forum.ansible.com/t/ec2-vpc-route-table-check-mode/24851/1 "2017-06-29T16:32:06Z")

</div>

When running ec2\_vpc\_route\_table module tasks in check mode (–check), the output says “changed”, but it is not clear what will be altered when check mode is off.

How can I tell what will be changed for that task?

Command output for a table with small number of routes:

`

TASK [create route table] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /Users/tom/repos/aws-codecommit/ansible-tower/util/ec2\_vpc\_route\_table\_output.yml:20  
Thursday 29 June 2017 17:10:05 +0100 (0:00:08.642) 0:00:12.114 \*\*\*\*\*\*\*\*\*  
Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/cloud/amazon/ec2\_vpc\_route\_table.py  
\<127.0.0.1\> ESTABLISH LOCAL CONNECTION FOR USER: tom  
\<127.0.0.1\> EXEC /bin/sh -c ‘/usr/local/opt/python/bin/python2.7 && sleep 0’  
changed: [localhost] =\> {  
“changed”: true,  
“invocation”: {  
“module\_args”: {  
“aws\_access\_key”: null,  
“aws\_secret\_key”: null,  
“ec2\_url”: null,  
“lookup”: “tag”,  
“profile”: null,  
“propagating\_vgw\_ids”: ,  
“purge\_routes”: true,  
“purge\_subnets”: true,  
“region”: “eu-central-1”,  
“route\_table\_id”: “rtb-d283b7ba”,  
“routes”: [  
{  
“destination\_cidr\_block”: “10.195.1.0/24”,  
“gateway\_id”: “None”,  
“instance\_id”: “i-61271fdd”,  
“interface\_id”: “eni-2db23c52”,  
“vpc\_peering\_connection\_id”: “None”  
},  
{  
“destination\_cidr\_block”: “10.195.2.0/24”,  
“gateway\_id”: “None”,  
“instance\_id”: “i-090a61db57068090c”,  
“interface\_id”: “eni-0ce2b460”,  
“vpc\_peering\_connection\_id”: “None”  
},  
{  
“destination\_cidr\_block”: “10.64.0.0/22”,  
“gateway\_id”: “None”,  
“instance\_id”: “i-023d66bd07e4b89d4”,  
“interface\_id”: “eni-2e414243”,  
“vpc\_peering\_connection\_id”: “None”  
},  
{  
“destination\_cidr\_block”: “10.192.16.0/20”,  
“gateway\_id”: “None”,  
“instance\_id”: “i-030a7771ba6ef2175”,  
“interface\_id”: “eni-23f0f04e”,  
“vpc\_peering\_connection\_id”: “None”  
},  
{  
“destination\_cidr\_block”: “10.192.192.0/20”,  
“gateway\_id”: “None”,  
“instance\_id”: “i-61271fdd”,  
“interface\_id”: “eni-2db23c52”,  
“vpc\_peering\_connection\_id”: “None”  
},  
{  
“destination\_cidr\_block”: “10.194.128.0/19”,  
“gateway\_id”: “local”,  
“instance\_id”: “None”,  
“interface\_id”: “None”,  
“vpc\_peering\_connection\_id”: “None”  
},  
{  
“destination\_cidr\_block”: “10.194.160.0/19”,  
“gateway\_id”: “None”,  
“instance\_id”: “i-090a61db57068090c”,  
“interface\_id”: “eni-0ce2b460”,  
“vpc\_peering\_connection\_id”: “None”  
},  
{  
“destination\_cidr\_block”: “0.0.0.0/0”,  
“gateway\_id”: “nat-0702f860217fc02f1”,  
“instance\_id”: “None”,  
“interface\_id”: “None”,  
“vpc\_peering\_connection\_id”: “None”  
}  
],  
“security\_token”: null,  
“state”: “present”,  
“subnets”: [  
“subnet-73151639”,  
“subnet-321b1878”,  
“subnet-911b18db”,  
“subnet-ad181be7”,  
“subnet-0514174f”  
],  
“tags”: {  
“Name”: “private\_c”  
},  
“validate\_certs”: true,  
“vpc\_id”: “vpc-12345f6a”  
}  
},  
“route\_table”: {  
“id”: “rtb-d283b7ba”,  
“routes”: [  
{  
“destination\_cidr\_block”: “10.195.1.0/24”,  
“gateway\_id”: null,  
“instance\_id”: “i-61271fdd”,  
“interface\_id”: “eni-2db23c52”,  
“origin”: “CreateRoute”,  
“state”: “active”,  
“vpc\_peering\_connection\_id”: null  
},  
{  
“destination\_cidr\_block”: “10.195.2.0/24”,  
“gateway\_id”: null,  
“instance\_id”: “i-090a61db57068090c”,  
“interface\_id”: “eni-0ce2b460”,  
“origin”: “CreateRoute”,  
“state”: “active”,  
“vpc\_peering\_connection\_id”: null  
},  
{  
“destination\_cidr\_block”: “10.64.0.0/22”,  
“gateway\_id”: null,  
“instance\_id”: “i-023d66bd07e4b89d4”,  
“interface\_id”: “eni-2e414243”,  
“origin”: “CreateRoute”,  
“state”: “active”,  
“vpc\_peering\_connection\_id”: null  
},  
{  
“destination\_cidr\_block”: “10.192.16.0/20”,  
“gateway\_id”: null,  
“instance\_id”: “i-030a7771ba6ef2175”,  
“interface\_id”: “eni-23f0f04e”,  
“origin”: “CreateRoute”,  
“state”: “active”,  
“vpc\_peering\_connection\_id”: null  
},  
{  
“destination\_cidr\_block”: “10.192.192.0/20”,  
“gateway\_id”: null,  
“instance\_id”: “i-61271fdd”,  
“interface\_id”: “eni-2db23c52”,  
“origin”: “CreateRoute”,  
“state”: “active”,  
“vpc\_peering\_connection\_id”: null  
},  
{  
“destination\_cidr\_block”: “10.194.128.0/19”,  
“gateway\_id”: “local”,  
“instance\_id”: null,  
“interface\_id”: null,  
“origin”: “CreateRouteTable”,  
“state”: “active”,  
“vpc\_peering\_connection\_id”: null  
},  
{  
“destination\_cidr\_block”: “10.194.160.0/19”,  
“gateway\_id”: null,  
“instance\_id”: “i-090a61db57068090c”,  
“interface\_id”: “eni-0ce2b460”,  
“origin”: “CreateRoute”,  
“state”: “active”,  
“vpc\_peering\_connection\_id”: null  
},  
{  
“destination\_cidr\_block”: “0.0.0.0/0”,  
“gateway\_id”: null,  
“instance\_id”: null,  
“interface\_id”: null,  
“origin”: “CreateRoute”,  
“state”: “active”,  
“vpc\_peering\_connection\_id”: null  
}  
],  
“tags”: {  
“Name”: “private\_c”  
},  
“vpc\_id”: “vpc-12345f6a”  
}  
}

`

---

<div class="post-metadata">

**Author:** ![Tom\_Paine1](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@Tom\_Paine1](https://forum.ansible.com/u/Tom_Paine1)\
**Post date:** [June 29, 2017, 4:48pm UTC](https://forum.ansible.com/t/ec2-vpc-route-table-check-mode/24851/2 "2017-06-29T16:48:25Z")

</div>

Happy to add some code to the module if that’s the only way to do it - any docs available to show how ‘diff’ works on a module that doesn’t alter files?
