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.32k stars 1.73k forks source link

[Announcement] Upcoming Changes in Version 6.0.0 of the Google Provider #18300

Closed swati-chadha closed 1 month ago

swati-chadha commented 4 months ago

We are planning to release version 6.0.0 of the Google providers in late August 2024. Major releases allow the provider to make breaking changes in a scheduled and publicized manner to help avoid unnecessary churn for our users. Since the last major provider release in September 2023, we have been listening closely to the community's feedback. The upcoming major release primarily focuses on various enhancements and bug fixes that include breaking changes. Support for earlier versions of Terraform will not change as a result of the major version release v6.0.0.

Notable Changes

1. Opt-out default label “goog-terraform-provisioned”

As a follow-up to the addition of provider-level default labels in 5.0.0, the 6.0.0 major release will include an opt-out default label “goog-terraform-provisioned”. This provider-level label “goog-terraform-provisioned” will be added to applicable resources to identify resources that were created by Terraform. This default label will only apply for newly created resources with a labels field. This will enable users to have a view of resources managed by Terraform when viewing/editing these resources in other tools like Cloud Console, Cloud Billing etc.

The labelgoog-terraform-provisioned” can be used for the following :

An opt-in version of the label was already released in 5.16.0, and 6.0.0 will change the label to opt-out. To opt-out of this default label, users may toggle the add_terraform_attribution_label provider configuration field. This can be set explicitly using any release from 5.16.0 onwards and the value in configuration will apply after the 6.0.0 upgrade.

provider "google" {
  // opt out of “goog-terraform-provisioned” default label
  add_terraform_attribution_label = false
}

2. Allow reducing the suffix length in “_nameprefix”.

Another notable issue to be resolved in the next major release is https://github.com/hashicorp/terraform-provider-google/issues/15374. The default value for “_nameprefix” for all resources will change to have a shorter appended suffix, which would allow the user-input to be longer.

For example, google_instance_template.name_prefix

HAHGX commented 4 months ago

Cool

daanheikens commented 4 months ago

@swati-chadha https://github.com/GoogleCloudPlatform/magic-modules/pull/10507 This PR was reverted due to an unexpected breaking change, Is it possible to also add this to this upcoming major release?

c2thorn commented 4 months ago

@swati-chadha GoogleCloudPlatform/magic-modules#10507 This PR was reverted due to an unexpected breaking change, Is it possible to also add this to this upcoming major release?

reopened https://github.com/hashicorp/terraform-provider-google/issues/17881 to track that.

c2thorn commented 1 month ago

TPG 6.0 is released! Release notes (GA): https://github.com/hashicorp/terraform-provider-google/releases/tag/v6.0.0 Upgrade guide: https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/version_6_upgrade

We also have a blog post summarizing the release and key changes: https://cloud.google.com/blog/products/management-tools/announcing-terraform-google-provider-6-0-0

c2thorn commented 1 month ago

Closing this and the 6.0.0 milestone. Further updates and followups should be in https://github.com/hashicorp/terraform-provider-google/milestone/97

github-actions[bot] commented 1 week ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.