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.
Only the 1 VM is created, which is the instance config VM
Actual Behavior
The instance group manager target_size is incremented to 2 and there are now 2 VMs running, with no way to make it only run with 1.
Steps to reproduce
Setup a google_compute_instance_group_manager with a target_size of 1
Setup a google_compute_per_instance_config for the above instance group manager
terraform apply
Important Factoids
When setting the target_size to 0, it will only create the 1 VM, which is the instance config VM, however, on subsequent runs, it will either remove the instance config VM as the target_size is updated to be 0 again or it will create the instance config VM as it no longer exists and set the target_size to 1, meaning that two runs need to be done to get it into a "correct" state.
When setting the target_size to 1, it will create the 2 VMs and then if the instance group manager target_size is manually changed to 1, only the instance config VM will exist and subsequent runs won't change anything, but this defeats the point of using an automated approach if it requires manual work afterwards.
References
No response
The text was updated successfully, but these errors were encountered:
Community Note
Terraform Version & Provider Version(s)
Terraform v1.4.5
on
Affected Resource(s)
google_compute_per_instance_config
google_compute_instance_group_manager
Terraform Configuration
Debug Output
No response
Expected Behavior
Only the 1 VM is created, which is the instance config VM
Actual Behavior
The instance group manager
target_size
is incremented to2
and there are now 2 VMs running, with no way to make it only run with 1.Steps to reproduce
google_compute_instance_group_manager
with atarget_size
of 1google_compute_per_instance_config
for the above instance group managerterraform apply
Important Factoids
When setting the
target_size
to0
, it will only create the 1 VM, which is the instance config VM, however, on subsequent runs, it will either remove the instance config VM as thetarget_size
is updated to be0
again or it will create the instance config VM as it no longer exists and set thetarget_size
to1
, meaning that two runs need to be done to get it into a "correct" state.When setting the
target_size
to1
, it will create the 2 VMs and then if the instance group managertarget_size
is manually changed to1
, only the instance config VM will exist and subsequent runs won't change anything, but this defeats the point of using an automated approach if it requires manual work afterwards.References
No response
The text was updated successfully, but these errors were encountered: