# Help/advice on how to use ignore feature with AWS routes

**URL:** <https://discuss.hashicorp.com/t/help-advice-on-how-to-use-ignore-feature-with-aws-routes/3268>\
**Category:** Terraform\
**Created:** [October 9, 2019, 10:38pm UTC](https://discuss.hashicorp.com/t/help-advice-on-how-to-use-ignore-feature-with-aws-routes/3268 "2019-10-09T22:38:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrjfox](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/mrjfox/32/2586_2.png) [@mrjfox](https://discuss.hashicorp.com/u/mrjfox)\
**Post date:** [October 9, 2019, 10:38pm UTC](https://discuss.hashicorp.com/t/help-advice-on-how-to-use-ignore-feature-with-aws-routes/3268/1 "2019-10-09T22:38:56Z")

</div>

Hi all

So i’m after advice or help with the ‘ignore feature’ on managing aws route rules.

**current situation and design**  
So currently i have two git repositories which which basically each contain:

- vpc
- vpc igw
- dhcp option set
- subnets etc one per zone.
- route-table, one per subnet
- routes for the route-tables, we have one route-table per subnet
- vpc peering
- a bunch of ec2 instances

In this example i will refer as each git repository as Stack A and Stack B and each has its own remote terraform s3 state file, they are not shared.

So when i run/deploy Stack A, it creates the vpc and all underlining infrastructure into a workable state

Then i run Stack B which does the same and also creates a vpc peering link and routes to link Stack B vpc with Stack A vpc.

I use variables for the route-table id from Stack A in Stack B terraform run to automatically create the vpc peering PCX route in the Stack A route-table.

**Current issue**  
Now if i re-run Stack A it will delete the pvc peering route as it wants to enforce state which is the problem i’m facing.

This means that other than creating the infrastructure from scratch, i cant use terraform to roll out future changes in Stack A and this is a simplified example but our environments are actually 10 separate stacks and we have multiple environments.

I have used the ignore feature before to ignore ec2 tags such as billing labels but i dont know how to correct use it on child resources by this i mean.

- parent resources: aws route-table table
- child resources: routes for the route-table

Any help would go a long way and if you need more information then please ask.

Thanks in advance.

Jared

---

<div class="post-metadata">

**Author:** ![millerjord](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/millerjord/32/11208_2.png) [@millerjord](https://discuss.hashicorp.com/u/millerjord)\
**Post date:** [September 1, 2020, 12:17pm UTC](https://discuss.hashicorp.com/t/help-advice-on-how-to-use-ignore-feature-with-aws-routes/3268/2 "2020-09-01T12:17:42Z")

</div>

Hi,

Wanted to check if you found a solution for this, I am right now having a similar issue with Azure. For each spoke subscription I will create a peering with the hub, and that has to be done in both directions. And I have different state-files for each subscription.

Can you ignore, or do I need to import the current state into all spoke subscriptions state files?

Thanks,

::Rune
