hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.33k stars 1.74k forks source link

Minimal action(minimal_action) in update_policy of google_compute_region_instance_group_manager does not support NONE #18018

Open JaswanthReddy opened 6 months ago

JaswanthReddy commented 6 months ago

Community Note

Description

https://cloud.google.com/compute/docs/instance-groups/updating-selected-instances-in-a-mig#disruption_levels has NONE for the minimal_action but the terraform provider only supports [REFRESH, RESTART, REPLACE] . Can you please allow the same ?

New or Affected Resource(s)

google_compute_region_instance_group_manager

Potential Terraform Configuration

update_policy {
    type                  = "OPPORTUNISTIC" 
    minimal_action        = "NONE"
    #https://cloud.google.com/compute/docs/instance-groups/updating-selected-instances-in-a-mig#disruption_levels
    most_disruptive_allowed_action = "REFRESH" 
    replacement_method    = "SUBSTITUTE"
  }

References

No response

b/339025984

askubis commented 2 months ago

I tested this with 6.1.0, it is working.

@JaswanthReddy thank you for your contribution! @BBBmau could you please close this issue?