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.29k stars 1.72k forks source link

failed update to google_iap_web_backend_service_iam_member #13503

Open sinmetal opened 1 year ago

sinmetal commented 1 year ago

Community Note

Terraform Version

hashicorp/google v4.13.0

Affected Resource(s)

Terraform Configuration Files

# Copy-paste your Terraform configurations here.
#
# For large Terraform configs, please use a service like Dropbox and share a link to the ZIP file.
# For security, you can also encrypt the files using our GPG public key:
#    https://www.hashicorp.com/security
#
# If reproducing the bug involves modifying the config file (e.g., apply a config,
# change a value, apply the config again, see the bug), then please include both:
# * the version of the config before the change, and
# * the version of the config after the change.
resource "google_iap_web_backend_service_iam_member" "example_com_is_iap_https_resource_accessor_of_default" {
  web_backend_service = google_compute_backend_service.default.name
  role                = "roles/iap.httpsResourceAccessor"
  member              = "domain:example.com"
}

Debug Output

Panic Output

Expected Behavior

Actual Behavior

│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to
│ google_iap_web_backend_service_iam_member.example_com_is_iap_https_resource_accessor_of_default,
│ provider "provider[\"registry.terraform.io/hashicorp/google\"]" produced an
│ unexpected new value: Root resource was present, but now absent.
│ 
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵

Steps to Reproduce

  1. terraform apply

Important Factoids

References

b/299601021

sinmetal commented 1 year ago

I'm using the same resource in several environments, but I'm getting an error in only one. I don't know what the minimum reproducible condition is.

bryan0515 commented 5 months ago

This seems like a duplicate of https://github.com/hashicorp/terraform-provider-google/issues/8809