-
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
Migrating to google_project_service from google_project_services = much slower #5266
Comments
reading into this more from a similar issue (#4689), it appears that batching is limited by |
We actually also batch calls to get the project services - this might actually be due to the fact that our batches are created on intervals, and it defaults to 10 seconds. We have a parameter for setting this interval here in the provider configuration: We should probably also look into reducing this default time, given the initial limit on number of concurrent requests is pretty low. |
Hey, Thanks for your help! |
Glad to hear it :) I'll go ahead and close the issue now! |
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! |
Community Note
Terraform Version
0.12.18, with 3.3.0 google plugin
Affected Resource(s)
google_project_service
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
google_project_service
implementation to be as fast asgoogle_project_services
was.Actual Behavior
Since
google_project_services
was deprecated, we now have to declare agoogle_project_services
for each api we enable in terraform. We have some 40 apis used across 15 different projects, as a result aterraform plan
now takes, absolutely ages.I can only presume that previously,
google_project_services
retrieved the list of all enabled apis for the project in one call, whereas now that's happening for eachgoogle_project_service
.This is that bad, we're likely going to stop using terraform to track
google_project_service
, which isn't great - as we'd like everything in git as code.Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: