-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
ignore_changes warning with Terraform v1.2.0 #2081
Comments
We will have to investigate this further |
Is this a tricky one? removing modifed_at from ignore_changes is not enough? |
@sanarena Unfortunately, it is not enough because it will be different behavior for users using previous versions of Terraform (<1.2). The problem is that currently, we don't know how to make the same code work for both Terraform ranges: |
Terraform output (v1.2.1) claims that the statement has no effect, though, or is that incorrect?
|
We will incorporate this change in v19.x |
@bryantbiggs is it meaning that 19.x will require Terraform version to be 1.2 and above? |
Possibly - we'll have to weight the considerations. With 1.3 now supporting variable optional type constraints, that is something that we've been waiting for to help satisfy the feedback we've heard around the use of variables with type |
@bryantbiggs is there a way to check terraform version in the code and modify the ignore_changes this only if version >=1.2 or is that too dirty? this can be done temporarily i guess, until eventually everyone upgrades to 1.3 and we can apply a permanent "fix" in future releases of the module. |
Unfortunately, no. There isn't any dynamic routes that I know of that would support this |
After thinking about this a bit more, I think we can accommodate a change for this. PR is coming |
This issue has been resolved in version 18.24.1 🎉 |
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. |
Description
When a plan or an apply is perfomred with terraform version 1.2.0 a warning is presented about a redundant ignore_changes element. Any example from the
examples/*
can be used to reproduce the error message with the correct version of terraform.Versions
Module version [Required]: 18.21.0 & 18.20.5
Terraform & Provider versions:
Terraform v1.2.0
on darwin_amd64
+ provider registry.terraform.io/hashicorp/aws v4.12.1
+ provider registry.terraform.io/hashicorp/cloudinit v2.2.0
+ provider registry.terraform.io/hashicorp/helm v2.5.1
+ provider registry.terraform.io/hashicorp/kubernetes v2.11.0
+ provider registry.terraform.io/hashicorp/tls v3.3.0
Reproduction Code [Required]
Any code in the examples will exibit this behavior.
Steps to reproduce the behavior:
initialize and plan any configuration using this module.
Expected behavior
a plan/apply that does not present a warning message
Actual behavior
while all actions are still successful a warning message is presented about a
Redundant ignore_changes element
Terminal Output Screenshot(s)
Additional context
the changelog for terraform 1.2.0 mentions this new warning message will be presented going forward.
The text was updated successfully, but these errors were encountered: