-
Notifications
You must be signed in to change notification settings - Fork 1.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
google_app_engine_standard_app_version always being updated in-place #9013
Comments
@PaddyMann what version of provider are you using? I wonder what the api sent back. Can you share the debug log when you first create the resource? |
Sure — I've added it above (https://gist.github.com/PaddyMann/3a7ab6d3a791f3322475bf059a15dd90) In this debug:
|
I realize I forgot to state the provider version — we're on the latest (3.63.0) |
Any update on this? It adds 5–10 minutes to each terraform deploy, including changes that in no way affect app engine. This is particularly painful when updating other areas of the infrastructure, which often takes 5–10 attempts to get right. Hours quickly get lost... |
@PaddyMann thanks for your patience. I was able to recreate the perma-diff with you configuration, and I see the problem. The API is setting the handler as a default, and every time Terraform attempts to remove it, it is overwritten/ignored. Normally we would suppress the diff for this specific scenario, but I haven't been able figure out a safe way to do this without suppressing actual changes to other Would modifying your config suffice? I was able to stop the perma-diff by adding the block:
So that the configuration is more aligned to the resource's actual value. |
@c2thorn Thank you — that works! It's a bit weird having two |
Thanks @PaddyMann for the follow up! I'll close this for now as there is a workaround, and patching this in the provider is nebulous. |
@c2thorn It's a little worse than I previously shared. It's not possible to simply include the additional lines when creating a new resource. Instead, you need to add these lines in addition to whatever's there when you first create the resource (!). This means literally duplicating the lines if you already had them:
|
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. |
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.15.1
on darwin_amd64
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/PaddyMann/3a7ab6d3a791f3322475bf059a15dd90
Panic Output
n/a
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
n/a
References
n/a
The text was updated successfully, but these errors were encountered: