Skip to content

Commit a6650bd

Browse files
authored
Upgrade guide - google_monitoring_* (#8970)
1 parent 1cd070d commit a6650bd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

mmv1/third_party/terraform/website/docs/guides/version_5_upgrade.html.markdown

+16
Original file line numberDiff line numberDiff line change
@@ -516,12 +516,28 @@ resource "google_firestore_database" "default" {
516516
### `deletion_policy` now defaults to `DELETE`
517517

518518
Previously, `google_firebase_web_app` deletions default to `ABANDON`, which means to only stop tracking the WebApp in Terraform. The actual app is not deleted from the Firebase project. If you are relying on this behavior, set `deletion_policy` to `ABANDON` explicitly in the new version.
519+
519520
## Resource: `google_compute_autoscaler` (beta)
520521

521522
### `metric.filter` now defaults to `resource.type = gce_instance`
522523

523524
Previously, `metric.filter` doesn't have the defult value and causes a UI error.
524525

526+
## Resource: `google_monitoring_dashboard`
527+
528+
### `dashboard_json` suppresses removal diffs more aggressively
529+
530+
To prevent permanent diffs from default values, Terraform will now attempt to suppress diffs where the value is returned in the JSON
531+
string but doesn't exist in the configuration. Consequently, legitmate remove-only diffs will also be suppressed.
532+
For Terraform to detect the diff, JSON key removals must also be accompanied by a non-removal change (trivial or not).
533+
534+
## Resource: `google_monitoring_metric_descriptor`
535+
536+
### Changing `labels` now triggers replacement
537+
538+
Previously, attempting to update `labels` failed and created a permadiff. The `labels`
539+
field is now immutable without destroying and recreating the resource.
540+
525541
## Resource: `google_privateca_certificate`
526542

527543
### `config_values` is now removed

0 commit comments

Comments
 (0)