Open jeremad opened 2 months ago
Hi @jeremad!
I'm trying to understand you.
Are you looking for both min_instance_count
and max_instance_count
values ββto be equal to 0 when creating a google_cloud_run_v2_service
, or some message in the documentation that warns that this is not possible?
You can ignore the min_instance_count
in this issue. When I set max_instance_count
to 0
, somehow, it's actually set to 100
.
Confirmed issue!
After executing the code with both values min_instance_count
and max_instance_count
equal to 0
the max_instance_count
is saved in the tfstate file with a value of 100
https://cloud.google.com/run/docs/configuring/max-instances#limits
By default cloud run configures a maximum of 100 instances if the user does not specify any maximum.
Ok! I missed this in the documentation. That explains part of it, but I would expect the terraform plugin documentation to mention that, since in this case, it's not left out blank, it's explicitly set to another value.
Community Note
Terraform Version & Provider Version(s)
Terraform v1.8.3 on linux_amd64
Affected Resource(s)
google_cloud_run_v2_service
Terraform Configuration
Debug Output
No response
Expected Behavior
Either or:
This behavior is documented absolutely nowhere
Actual Behavior
The maximum number of instance is 100
Steps to reproduce
terraform apply
Important Factoids
No response
References
https://cloud.google.com/run/docs/reference/rest/v2/RevisionScaling https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_run_v2_service#max_instance_count
b/361784995