You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.
Terraform Version
Terraform Version: 1.5.5
provider version:
hashicorp/google: v5.2.0
hashicorp/google-beta: v5.2.0
Affected Resource(s)
google_bigquery_dataset
Terraform Configuration Files
This is the setting before modification.
resource"google_bigquery_dataset""dataset" {
dataset_id="example_dataset"friendly_name="test"description="This is a test description"location="EU"default_table_expiration_ms=3600000labels={
env ="default"
}
access {
role="READER"group_by_email="my-group@my_company.com"
}
}
Here is the modified configuration, only the description has been changed.
resource"google_bigquery_dataset""dataset" {
dataset_id="example_dataset"friendly_name="test"description="This is a test description modified for testing"location="EU"default_table_expiration_ms=3600000labels={
env ="default"
}
access {
role="READER"group_by_email="my-group@my_company.com"
}
}
Expected Behavior
I am hoping that terraform apply will work correctly and the BigQuery dataset description will change.
Actual Behavior
You are about to run terraform apply to change the description of a dataset. Suppose that the Google Group listed in the access field has been deleted before terraform apply is executed. When you run terraform apply, it will fail with the following error
│ Error: Error updating Dataset "projects/my-project/datasets/example_dataset": googleapi: Error 400: An access entry must have exactly one of userByEmail, groupByEmail, domain, specialGroup defined, view, routine, or dataset., invalid
│
│ with google_bigquery_dataset.example_dataset,
│ on google_bigquery_dataset.tf line 256, in resource "google_bigquery_dataset" "example_dataset":
│ 256: resource "google_bigquery_dataset" "example_dataset" {
When I went to look at the status of the dataset with the bq command, I found the following.
Reading the source code, I think the resource_bigquery_dataset is missing iamMember, which is causing the above error. The google_bigquery_dataset_iam_member also covers iamMember, so terrafrom apply will not fail if the google group is deleted as well.
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.
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
This is the setting before modification.
Here is the modified configuration, only the description has been changed.
Expected Behavior
I am hoping that
terraform apply
will work correctly and the BigQuery dataset description will change.Actual Behavior
You are about to run
terraform apply
to change the description of a dataset. Suppose that the Google Group listed in the access field has been deleted beforeterraform apply
is executed. When you runterraform apply
, it will fail with the following errorWhen I went to look at the status of the dataset with the
bq
command, I found the following.This is what it looked like before I deleted the relevant group.
Reading the source code, I think the
resource_bigquery_dataset
is missingiamMember
, which is causing the above error. Thegoogle_bigquery_dataset_iam_member
also coversiamMember
, soterrafrom apply
will not fail if the google group is deleted as well.Steps to Reproduce
google_bigquery_dataset
with a google group byterraform apply
google_bigquery_dataset
byterraform apply
References
b/306360469
The text was updated successfully, but these errors were encountered: