-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Terraform 0.12 shows warnings only when there are changes #22541
Comments
+1 |
This is a serious bug, because some providers, e.g. Google, rely on this functionality - the 3.x upgrade guide:
Now I have to keep faking some changes just to show the deprecation warnings in |
Fixes hashicorp#22541 This change will print warnings, such as deprecations, even if plan has no changes.
I hacked a fix #24095 for this bug, hopefully it would solve the problem for everyone. |
Backport of hashicorp#24095 Fixes hashicorp#22541 for v0.11
Backport of hashicorp#24095 Fixes hashicorp#22541 for v0.12
Backport of hashicorp#24095 Fixes hashicorp#22541 for v0.12
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. |
Terraform Version
Terraform Configuration Files
main.tf
main.tfvars
Run
terraform init && terraform plan -var-file=main.tfvars
Expected Behavior
Warnings should be shown even if there are no changes.
Actual Behavior
Warnings are shown only when there are changes.
Steps to Reproduce
terraform init
terraform plan -var-file=main.tfvars
Changes and warnings are shown
terraform apply -var-file=main.tfvars -auto-approve
terraform plan -var-file=main.tfvars
No changes, no warnings
Additional Context
After migration to terraform 0.12 we saw stricter behavior and warnings we would like to address, but we see them only when there are changes. So we have to create a change artificially in order to fix those recommendations.
Example of the warning:
The text was updated successfully, but these errors were encountered: