Adding a new unrelated resource triggers spurious and unnecessary changes to resources that haven’t really changed.
What did you expect to happen?
Changes should not be applied for the resource that was not changed.
Steps to reproduce
Use the attached main.tf example.
Run it like follows export TF_VAR_account=<account>.[1password.com](http://1password.com/); export TF_VAR_vault="<a vault name>"; export TF_VAR_secret1_name=<a secret name>; export TF_VAR_secret2_name=<another secret name>;and tofu inittofu apply then uncomment # zot = "zot" in main.tf and tofu apply again. Notice that it replaces everything in the module must be replaced even though nothing actually changed.
Your environment
Terraform Provider Version: 1.4.1
Connect Server Version:
CLI Version: 2.23.0
OS:
Terraform Version:
What happened?
Adding a new unrelated resource triggers spurious and unnecessary changes to resources that haven’t really changed.
What did you expect to happen?
Changes should not be applied for the resource that was not changed.
Steps to reproduce
Use the attached
main.tf
example.Run it like follows export
TF_VAR_account=<account>.[1password.com](http://1password.com/); export TF_VAR_vault="<a vault name>"; export TF_VAR_secret1_name=<a secret name>; export TF_VAR_secret2_name=<another secret name>;
andtofu init
tofu apply
then uncomment# zot = "zot"
inmain.tf
andtofu apply
again. Notice that it replaces everything in the module must be replaced even though nothing actually changed.Notes & Logs
main.txt