You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
If an issue is assigned to a user, that user is claiming responsibility for the issue.
Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.
Terraform will perform the following actions:
# google_compute_autoscaler.default will be updated in-place
~ resource "google_compute_autoscaler" "default" {
+ description = "Terraform-managed."
id = <content removed>
name = <content removed>
# (5 unchanged attributes hidden)
# (1 unchanged block hidden)
}
╷
│ Error: Error waiting for Updating Autoscaler: Required field 'resource.autoscalingPolicy.maxNumReplicas' not specified
│
│
│ with google_compute_autoscaler.default[0],
│ on main.tf line 37, in resource "google_compute_autoscaler" "default":
│ 37: resource "google_compute_autoscaler" "default" {
│
╵
Expected Behavior
Apply perform successfully
Actual Behavior
Apply fails with message "Required field 'resource.autoscalingPolicy.maxNumReplicas' not specified"
Steps to reproduce
terraform apply
Change min and max number of instances in GCP console to 0. (this also happens to clear the autoscaler description)
terraform apply
Important Factoids
life_cycle is set to ignore autoscaling_policy changes. I have not tested if setting the min and max replica numbers to 0 in the terraform directly also causes this problem.
References
No response
b/345321691
The text was updated successfully, but these errors were encountered:
As user explains when max_replicas and min_replicas values are equal to 0 terraform returns the next error message:
╷
│ Error: Error waiting for Updating Autoscaler: Required field 'resource.autoscalingPolicy.maxNumReplicas' not specified
│
│ with google_compute_autoscaler.default[0],
│ on main.tf line 37, in resource "google_compute_autoscaler" "default":
│ 37: resource "google_compute_autoscaler" "default" {
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Terraform Version & Provider Version(s)
Terraform v1.3.9
on linux_amd64
Affected Resource(s)
google_compute_autoscaler
Terraform Configuration
Debug Output
Expected Behavior
Apply perform successfully
Actual Behavior
Apply fails with message "Required field 'resource.autoscalingPolicy.maxNumReplicas' not specified"
Steps to reproduce
terraform apply
terraform apply
Important Factoids
life_cycle is set to ignore autoscaling_policy changes. I have not tested if setting the min and max replica numbers to 0 in the terraform directly also causes this problem.
References
No response
b/345321691
The text was updated successfully, but these errors were encountered: