Loading...
Loading...
### Terraform Version ```shell 1.10.3 ``` ### Terraform Configuration Files ``` resource "google_data_catalog_tag" "fixed_tag" { tag = "my-project.project_events.table_s_some_id" parent = "projects/my-project/locations/us/entryGroups/@bigquery/entries/id-code-entry", template = "projects/my-project/locations/us-east4/tagTemplates/my_tag" column = "s_some_id" } ``` ### Debug Output ``` Planning failed. Terraform encountered an error while generating this plan. ╷ │ Error: Error when reading or editing DataCatalogTag "projects/my-project/locations/us/entryGroups/@bigquery/entries/id-code-entry/tags/id-code-tag": googleapi: Error 403: Permission denied or tag parent does not exist. │ ``` ### Expected Behavior As the permission are definitely there, Terraform should output a WARN statement indicating there was no action needed on the resource and continue to next resource. ### Actual Behavior The first run (to create them) worked fine, but if the table is deleted outside of Terraform it output this error and fails. ### Steps to Reproduce 1. Run terraform plan and apply to add a new tag to the table's column. 2. Delete the table in bigquery 3. Run terraform plan 4. Watch the run fails ### Additional Context The authorisations are correct as plan/apply are working in this project outsidee of this behavior. I found other similar issue but for AWS that apparently were fixed. https://github.com/hashicorp/terraform-provider-aws/issues/3184 https://github.com/hashicorp/terraform-provider-aws/issues/19932 ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.