We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgraded terraform-google-cloud storage version from 1.7.0 to the latest 6.1.0 and getting this error. I am not using a list in my code.
# google_storage_bucket_iam_binding.cutouts-bucket-ro-iam-binding must be replaced -/+ resource "google_storage_bucket_iam_binding" "cutouts-bucket-ro-iam-binding" { ~ bucket = "b/rubin-cutouts-dev-us-central1-output" -> "rubin-cutouts-dev-output" # forces replacement ~ etag = "CAs=" -> (known after apply) ~ id = "b/rubin-cutouts-dev-us-central1-output/roles/storage.objectViewer" -> (known after apply) # (2 unchanged attributes hidden)
Upgrade the provider version and not have terraform delete the bucket.
Terraform wants to delete the bucket.
module "gcs_bucket" { source = "terraform-google-modules/cloud-storage/google" version = ">= 6.1.0" project_id = var.project_id names = var.suffix_name prefix = var.prefix_name set_admin_roles = var.set_admin_roles admins = var.admins versioning = var.versioning bucket_policy_only = var.bucket_policy_only bucket_admins = var.bucket_admins bucket_creators = var.bucket_creators bucket_viewers = var.bucket_viewers creators = var.creators encryption_key_names = var.encryption_key_names folders = var.folders force_destroy = var.force_destroy labels = var.labels lifecycle_rules = var.lifecycle_rules location = var.location set_creator_roles = var.set_creator_roles set_viewer_roles = var.set_viewer_roles storage_class = var.storage_class viewers = var.viewers }
terraform version Terraform v1.9.5 on linux_amd64 + provider registry.terraform.io/hashicorp/google v5.44.0 + provider registry.terraform.io/hashicorp/google-beta v5.44.0 + provider registry.terraform.io/hashicorp/null v3.2.3 + provider registry.terraform.io/hashicorp/random v3.6.3 + provider registry.terraform.io/hashicorp/template v2.2.
No response
The text was updated successfully, but these errors were encountered:
Hi @dspeck1 thanks for your report.
The Terraform Google Cloud Storage Module uses Semantic Versioning for the releases created, which means there are braking changes from v1 to v6.
Your case looks like the change describe in the documentation regarding Upgrading to v4.0.
Cloud you try the instructions and see if they fix your issue?
Sorry, something went wrong.
No branches or pull requests
TL;DR
Upgraded terraform-google-cloud storage version from 1.7.0 to the latest 6.1.0 and getting this error. I am not using a list in my code.
Expected behavior
Upgrade the provider version and not have terraform delete the bucket.
Observed behavior
Terraform wants to delete the bucket.
Terraform Configuration
Terraform Version
Additional information
No response
The text was updated successfully, but these errors were encountered: