# Using PlanModifier to supress the diff causing plan diff for other computed fields

**URL:** <https://discuss.hashicorp.com/t/using-planmodifier-to-supress-the-diff-causing-plan-diff-for-other-computed-fields/72633>\
**Category:** Plugin Development\
**Created:** [January 16, 2025, 10:27am UTC](https://discuss.hashicorp.com/t/using-planmodifier-to-supress-the-diff-causing-plan-diff-for-other-computed-fields/72633 "2025-01-16T10:27:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![naga.raju.pasunuri](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/naga.raju.pasunuri/32/44344_2.png) [@naga.raju.pasunuri](https://discuss.hashicorp.com/u/naga.raju.pasunuri)\
**Post date:** [January 16, 2025, 10:27am UTC](https://discuss.hashicorp.com/t/using-planmodifier-to-supress-the-diff-causing-plan-diff-for-other-computed-fields/72633/1 "2025-01-16T10:27:10Z")

</div>

Hi Team,

We have an attribute of type string for which had a PlanModifer to make it’s value case-insensitive, after creating the resource, modified the value of the attribute, when terraform plan is made, there is a diff showing for other computed attributes and there is no diff for the current attribute which had PlanModifier.

Steps:

1. Terraform apply (with **description** value as "hello plugin 1 ")
2. Terraform plan (No diff is shown)
3. Modified **description** to "HELLO plugin 1 "
4. Terraform plan (shows diff for other computed attributes)

There is a PlanModifer for **description** attribute and because of it, there is no diff for this in plan but it is showing diff for all other computed and optional+computed fields.

---

<div class="post-metadata">

**Author:** ![hQnVyLRx](https://avatars.discourse-cdn.com/v4/letter/h/ad7895/32.png) [@hQnVyLRx](https://discuss.hashicorp.com/u/hQnVyLRx)\
**Post date:** [January 17, 2025, 12:09pm UTC](https://discuss.hashicorp.com/t/using-planmodifier-to-supress-the-diff-causing-plan-diff-for-other-computed-fields/72633/2 "2025-01-17T12:09:13Z")

</div>

In step 3 are you changing the value in a terraform config file (`.tf`), or on the API?

---

<div class="post-metadata">

**Author:** ![naga.raju.pasunuri](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/naga.raju.pasunuri/32/44344_2.png) [@naga.raju.pasunuri](https://discuss.hashicorp.com/u/naga.raju.pasunuri)\
**Post date:** [January 20, 2025, 4:24am UTC](https://discuss.hashicorp.com/t/using-planmodifier-to-supress-the-diff-causing-plan-diff-for-other-computed-fields/72633/3 "2025-01-20T04:24:17Z")

</div>

Thanks for checking this. Value is changed in .tf file. Once the value is changed, terraform plan is not showing diff for this value attribute but it’s showing diff for all other computed attributes as (known after apply).
