Open iwahbe opened 3 months ago
Hi @iwahbe!
The scenario was replicated with the provided specifications many times successfully and without errors, also the shared debug output was checked but nothing indicates that the user@domain.com
was deleted from the dataset's editor list
Hi @iwahbe!
The scenario was replicated with the provided specifications many times successfully and without errors, also the shared debug output was checked but nothing indicates that the
user@domain.com
was deleted from the dataset's editor list
Hi @ggtisc. Thanks for taking a look. Can you clarify what you mean "without errors". The provider doesn't error and I don't think the provider ever tries to delete user@domain.com
from the dataset's editor list (so I don't think it would show up in debug input).
user@domain.com
does get removed from the editor list (it certainly did when I build the repro). How are you checking if the delete happened. I used this from google's cloud console:
bq show <project_id>:test_dataset_access
Scenario confirmed with the following steps:
terraform apply
bq show <project_id>:dataset_test
(the user@domain.com
will be there)dataset_test.description
and run a terraform apply --refresh=false
bq show <project_id>:dataset_test
(the user@domain.com
will be deleted)But if in the step 4 you run a terrafom apply
the user@domain.com
won't be deleted
Community Note
Terraform Version
Terraform v1.8.1 on darwin_arm64
Affected Resource(s)
google_bigquery_dataset google_bigquery_dataset_access
Terraform Configuration
Step 1
terraform apply
:Step 2
terraform apply --refresh=false
:Debug Output
https://gist.github.com/iwahbe/4ec36b6133e3f4fce8267395ff684244
Expected Behavior
Terraform should change the description on my BigQuery Dataset and do nothing else.
Actual Behavior
Terraform changes the description and deletes
user@domain.com
from the dataset's editor list.Steps to reproduce
terraform apply
on the initial config.terraform apply --refresh=false
on the secondary config.Important Factoids
No response
References
No response
b/336356226