diff --git a/.changelog/3435.txt b/.changelog/3435.txt new file mode 100644 index 0000000000..155235858b --- /dev/null +++ b/.changelog/3435.txt @@ -0,0 +1,3 @@ +```release-note:bug +compute: Stopped force-recreation of `google_compute_backend_service` and `google_compute_backend_service` on updating `locality_lb_policy +``` diff --git a/google-beta/resource_compute_backend_service.go b/google-beta/resource_compute_backend_service.go index 52470681a3..eb05f77342 100644 --- a/google-beta/resource_compute_backend_service.go +++ b/google-beta/resource_compute_backend_service.go @@ -531,7 +531,6 @@ load balancing cannot be used with the other. Default value: "EXTERNAL" Possible "locality_lb_policy": { Type: schema.TypeString, Optional: true, - ForceNew: true, ValidateFunc: validation.StringInSlice([]string{"ROUND_ROBIN", "LEAST_REQUEST", "RING_HASH", "RANDOM", "ORIGINAL_DESTINATION", "MAGLEV", ""}, false), Description: `The load balancing algorithm used within the scope of the locality. The possible values are - diff --git a/google-beta/resource_compute_region_backend_service.go b/google-beta/resource_compute_region_backend_service.go index fd5efbc5de..85ed8aa741 100644 --- a/google-beta/resource_compute_region_backend_service.go +++ b/google-beta/resource_compute_region_backend_service.go @@ -415,7 +415,6 @@ balancing cannot be used with the other(s). Default value: "INTERNAL" Possible v "locality_lb_policy": { Type: schema.TypeString, Optional: true, - ForceNew: true, ValidateFunc: validation.StringInSlice([]string{"ROUND_ROBIN", "LEAST_REQUEST", "RING_HASH", "RANDOM", "ORIGINAL_DESTINATION", "MAGLEV", ""}, false), Description: `The load balancing algorithm used within the scope of the locality. The possible values are -