4 ms·
Any pointers to what you use instead for managing those kinds of corner cases like things that modify themselves?
by chrisshroba 5y ago
Any pointers to what you use instead for managing those kinds of corner cases like things that modify themselves?
- vageli 5y agoOne 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