-
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
google_compute_security_policy very slow #18466
Comments
Hi @fawaf! After some tries creating this simple resource the result was the same, successfully without errors and it never takes more than one min to be created, I suggest you to check external factors like your OS, RAM, Processor, Capacity of your server, available memory and other involved applications. Also if you are running a |
oh, forgot to mention that the security policy itself contains 2000 rules already. basically, running tf on an and existing security policy causes this issue. |
updated ticket description to reflect that. |
Well this is definitively the issue, you could decouple your policy in different rules if you want to have a faster creation or wait until it finishes. |
it succeeded a few times before, but then just started hanging after a few usages. we also are running into a quota issue in that project. i'll report back once we get that solved. |
Yes, this is because you are overcharging the policy. For this reason it is a good practice to decouple your resources as much as possible when you work in cloud engineering. With this you ensure to have a clear code, it is easier to give maintenance, reuse your code (in this case if you need to reuse some policy rules) and avoid overcharge API calls. In the end you could do that, but this increases the timeout. |
Community Note
Terraform Version & Provider Version(s)
Terraform v1.5.7
on linux_amd64
Affected Resource(s)
google_compute_security_policy
Terraform Configuration
Debug Output
https://gist.github.com/fawaf/c9fdfaa2a3a53cca043f1a036b3971b5
Expected Behavior
run to completion
Actual Behavior
hangs on pulling all rules
Steps to reproduce
terraform apply
Important Factoids
this tf is run on an existing security policy that contains 2000 rules
References
No response
b/348530015
The text was updated successfully, but these errors were encountered: