-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to display "Objects have changed outside of Terraform" section, hide it by default. #29808
Comments
Alternatively, leave the current behavior as the default, but provide an option to suppress the 'changed outside of terraform' output. |
As a workaround that solves this particular request, this sed line mentioned in the original thread looks pretty good: #28803 (comment) I know it has the potential to be flaky in the future, under output formatting changes, ANSI codes, etc. - but at least it currently provides a way to get the functionality we're looking for without waiting for the large cross-cutting changes that the core team proposed in the original thread. Provided you're in a context where you can wrap the execution of course. I do think the original thread was taken far, far off course by the repeated mentions of I think it's worth having this separate issue to track who would be interested in always showing none of them when using |
The problem with the current output is that it's almost always noise ... but not always. We see entire IAM policies in which the order of two items flip-flops, every Github commit results in a new etag, and similar. So having read about this before, apparently there's some issue with using Here's the case of the flip-flopping policy:
and here's a case of the github tags:
But just after the above, there was an actual drift detected, but it's buried in the noise of the above. Having drift detection is a big step forward. Having usable drift detection will make the feature complete. |
Quite some time ago we changed the behavior to only show "Objects have changed outside of Terraform" entries if they describe a change to something that is also described in the "Terraform will perform the following actions" section, because that neatly achieves only the original goal (explaining why those changes are being proposed) while being quiet about it in any case where the changes outside of Terraform did not cause a proposed change (which includes when the proposed change has been suppressed using Therefore I think this is fixed as closely as it's going to be fixed, and so I'm going to close this issue. Instead of offering an option, Terraform just uses a better heuristic to avoid showing the message unless it appears to be relevant. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
This is a followup to #28803
plan
andapply
only showed the "Terraform will perform the following actions" section.plan
andapply
now show both "Terraform will perform the following actions" and "Objects have changed outside of Terraform".We want an option to hide the "Objects have changed outside of Terraform" part of the
plan
andapply
commands, because this is verbose, confusing, and only needed when we want to understand an issue.#28803 (comment) is not satisfactory, we understand what is being proposed, and that is not what is being asked.
The ask is simple: Hide the "Objects have changed outside of Terraform" by default and provide an option to display it when we want to.
The text was updated successfully, but these errors were encountered: