-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Removing value from ssl_certificate in google_compute_target_https_proxy results in "inconsistent final plan" #7356
Comments
Interesting... This looks like an issue with Terraform itself. I'm able to reproduce this with Terraform version 0.13, but it does not appear as a inconsistent plan when using 0.12 I'll file an upstream bug, as this isn't fixable in the provider |
This looks like it is caused by this bug: hashicorp/terraform#25631 Marking upstream-terraform for now |
@slevenick we can close this issue. The upstream issue has been fixed. It is in v0.14 but no mention in the changelog. |
Closing, thanks for the follow-up @upodroid |
@upodroid @slevenick Thanks for your investigations. However, I have tested this with v0.14.0-rc1 and I am still encountering the same issue. You should be able to reproduce it again with the exact same code as I described in this issue. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Reopening to allow comments, will immediately close again. @jseris if you are still seeing the same issue with 0.14.0 you may want to raise this issue with the Terraform core team. I believe this issue is due to the interaction between |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Terraform v0.13.3
provider.google v3.40.0
provider.google-beta v3.40.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/jseris/2ab077abaf59ca83a5144be6cc1638da
Expected Behavior
When removing
"cert2" = ["test2.example.com"]
from san_certificates, the plan should be successfully executed, i.e. detachingcert2
from the target-https-proxy and deleting the certificate itself.Actual Behavior
The plan looks as expected. However, when applying, the following error is thrown:
Steps to Reproduce
terraform apply
for given Terraform config"cert2" = ["test2.example.com"]
from locals.san_certificates.terraform plan
will give the expected planterraform apply
will give the errorImportant Factoids
I am able to work around this by explicitly defining the certificates in separate resources and interpolating the self_links directly in
google_compute_target_https_proxy.default.ssl_certificates
, like this:In this setup, when removing
google_compute_managed_ssl_certificate.cert2
andgoogle_compute_managed_ssl_certificate.cert2.self_link
fromssl_certificates
, it works as expected:cert2
is detached from the target_https_proxy and deleted.However, in my actual project I have modularised the
google_compute_target_https_proxy
andgoogle_compute_managed_ssl_certificate
, so I would to use the implementation as configured in the given TF configuration.References
N/A
The text was updated successfully, but these errors were encountered: