diff --git a/.changelog/3033.txt b/.changelog/3033.txt new file mode 100644 index 00000000..0b90930c --- /dev/null +++ b/.changelog/3033.txt @@ -0,0 +1,9 @@ +```release-note:breakingchange +compute: Added conditional requirement of `google_compute_**region**_backend_service` `backend.capacity_scaler` to no longer accept the API default if not INTERNAL. Non-INTERNAL backend services must now specify `capacity_scaler` explicitly and have a total capacity greater than 0. In addition, API default of 1.0 must now be explicitly set and will be treated as nil or zero if not set in config. +``` +```release-note:bug +compute: Fixed `google_compute_**region**_backend_service` so it no longer has a permadiff if `backend.capacity_scaler` is unset in config by requiring capacity scaler. +``` +```release-note:bug +compute: Fixed `backend.capacity_scaler` to actually set zero (0.0) value. +``` diff --git a/region_backend_service_basic/main.tf b/region_backend_service_basic/main.tf index 18597a07..478fb4f9 100644 --- a/region_backend_service_basic/main.tf +++ b/region_backend_service_basic/main.tf @@ -1,5 +1,5 @@ resource "google_compute_region_backend_service" "default" { - name = "region-backend-service-${local.name_suffix}" + name = "tf-test-rbs-${local.name_suffix}" region = "us-central1" health_checks = [google_compute_health_check.default.self_link] connection_draining_timeout_sec = 10 @@ -7,7 +7,7 @@ resource "google_compute_region_backend_service" "default" { } resource "google_compute_health_check" "default" { - name = "health-check-${local.name_suffix}" + name = "tf-test-hc-${local.name_suffix}" check_interval_sec = 1 timeout_sec = 1