4 ms·
One solution is adding the attributes you expect to be modified to ignored_changes in a lifecycle block[0], which instructs terraform to disregard changes to th
by vageli 5y ago
One solution is adding the attributes you expect to be modified to ignored_changes in a lifecycle block[0], which instructs terraform to disregard changes to those attributes when calculating diffs for plan/apply. That allows you to specify a value for that attribute at creation time and allow for its subsequent manual/non-terraform-managed modification without causing "drift".
[0]: https://www.terraform.io/language/meta-arguments/lifecycle https://www.terraform.io/language/meta-arguments/lifecycle