-
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
template_file - terraform will perform the following actions when none needed #21545
Comments
Hi @cyrus-mc! Sorry for this odd behavior. Could you also share the configuration of the data resource? It looks like the output shown here is all state/plan data, rather than configuration. |
Hi @cyrus-mc! We didn't hear back from you, so I'm going to close this out. One common reason for a perpetual plan to read a data resource is if #17034 is the main issue representing that limitation. In the mean time, the solution is to avoid using |
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Currently in the process of migrating all our modules (actually complete) over to v0.12.
We are finding that after doing so we notice that Terraform wants to apply changes when no changes are needed. This has specifically been noted for the template_file resource.
The nice thing about this is it actually doesn't change any physical resources. But for those on our team who are not as knowledgeable with Terraform it gives them pause when running an apply after converting.
Terraform Version
Terraform Configuration Files
Here is the state of the resource prior to conversion
And here is the output of the plan and state after conversion
As you can see it lists a change it will apply (just create the template). After applying a show on the state of that resources shows it is exactly the same as it was before. Contents are the same and the ID hasn't change.
Expected Behavior
Since there is no change, terraform should indicate the infrastructure is up to date.
The text was updated successfully, but these errors were encountered: