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
In google_compute_instance_group_manager if you set target_size to 0 the value get ignored and the default value of 1 get applied at the first apply. Similar issue when you try to change the value from a non zero value to zero. Terraform will detect the change however when applying the plan the value will not got changed to 0.
Terraform Version
terraform v0.96
terraform v0.97
terraform v0.98
Affected Resource(s)
Please list the resources as a list, for example:
google_compute_instance_group_manager
Terraform Configuration Files
resource"google_compute_instance_template""template" {
name_prefix="template-server"region="${var.region}"lifecycle {
create_before_destroy=true
}
network_interface {
network="default"
}
machine_type="f1-micro"can_ip_forward=falsescheduling {
automatic_restart=trueon_host_maintenance="TERMINATE"
}
// Create a new boot disk from an imagedisk {
source_image="projects/ubuntu-os-cloud/global/images/ubuntu-1604-xenial-v20170516"disk_type="pd-ssd"auto_delete=trueboot=true
}
service_account {
scopes=[ ]
}
}
resource"google_compute_instance_group_manager""group_manager" {
name="instance-group-tf-bug"base_instance_name="servers"instance_template="${google_compute_instance_template.template.self_link}"update_strategy="NONE"zone="us-central1-a"target_size=0
}
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 👉 hashibot-feedback@hashicorp.com. Thanks!
ghost
locked and limited conversation to collaborators
Mar 31, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there,
In
google_compute_instance_group_manager
if you settarget_size
to 0 the value get ignored and the default value of 1 get applied at the first apply. Similar issue when you try to change the value from a non zero value to zero. Terraform will detect the change however when applying the plan the value will not got changed to 0.Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
Expected Behavior
Inttance group number of instances should be 0 and no instances should be created.
Actual Behavior
Instance group number of instances is 1
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: