Google Cloud has announced the general availability of Terraform Google Provider v6.0.0. This major release focuses on enhancing usability and safety for managing Google Cloud resources. Here are some notable changes:

**Opt-out Default Label "goog-terraform-provisioned":**

This release introduces an option to opt out of the default label "goog-terraform-provisioned" added in version 5.0.0. This provider-level label will be added to applicable resources to identify those created by Terraform. This default label only applies to newly created resources with a labels field. This allows users to view Terraform-managed resources in other tools like Google Cloud Console and Cloud Billing.

**Deletion Protection Fields Added to Multiple Resources:**

To prevent accidental deletion of important resources, many resources now have deletion protection enabled by default. These resources include `google_domain`, `google_cloud_run_v2_job`, `google_cloud_run_v2_service`, `google_folder`, and `google_project`. Most are enabled by the `deletion_protection` field, while `google_project` specifically uses the `deletion_policy` field set to `PREVENT` by default.

**Allowed Reducing the Suffix Length in "name_prefix":**

This release addresses the issue "Allow reducing the suffix length appended to instance templates name_prefix (#15374)" by changing the default behavior for `name_prefix` in multiple resources. The maximum length of the user-defined `name_prefix` has increased from 37 to 54 characters. The provider will use a shorter appended suffix when using a `name_prefix` longer than 37 characters, allowing for more flexible resource names.

With features like opt-out default labels and deletion protection, this version enhances the visibility of Terraform-managed resources in other tools and prevents accidental deletions. TPG 6.0.0 aims to improve the usability and safety of Terraform for managing Google Cloud resources.

When upgrading to version 6.0 of the Terraform Google Provider, consult the upgrade guide on the Terraform Registry for a complete list of changes and upgrade considerations. For more details on this major version release, check out the Release notes for TPG 6.0.0. Learn more about Terraform on Google Cloud in the Terraform on Google Cloud documentation.