# Manually edit plan

**URL:** <https://discuss.hashicorp.com/t/manually-edit-plan/24288>\
**Category:** Terraform\
**Created:** [May 12, 2021, 3:43pm UTC](https://discuss.hashicorp.com/t/manually-edit-plan/24288 "2021-05-12T15:43:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schollii](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/schollii/32/16958_2.png) [@schollii](https://discuss.hashicorp.com/u/schollii)\
**Post date:** [May 12, 2021, 3:43pm UTC](https://discuss.hashicorp.com/t/manually-edit-plan/24288/1 "2021-05-12T15:43:07Z")

</div>

I have a situation where a plan is fine EXCEPT for one or two resources that I do not want to change immediately.

There is no automated way I can generate the `-target` options, I have to write each one manually on the command line, needless to say this is tedious and error prone. I could write a bash or python script to generate the set of `-target` based on a filter I provide, but I’m thinking someone has already done that, does anyone know?

It does not seem possible to edit the plan file otherwise that would be a good option too (eventhough I can convert the plan to json with `show -json`, the `apply` command only takes the binary file as input).

Is there any other way to do this?
