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 a user, that user is claiming responsibility for the issue.
Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.
Terraform apply should succeed after the access is granted to the service account.
Actual Behavior
Terraform apply completes with an error. Note that the access is granted but it fails while validation for service accounts having upper case or mixed case email addresses.
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to google_bigquery_dataset_access.bigquery_dataset_access["project-READER-ENTERPRISE-REPORTS-@project.iam.gserviceaccount.com"], provider
│ "provider["registry.terraform.io/hashicorp/google"]" produced an unexpected new value: Root object was present, but now absent.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
2024-09-19T21:44:24.224-0700 [DEBUG] provider.terraform-provider-google_v6.3.0_x5: 2024/09/19 21:44:24 [DEBUG] Skipping item with role= "OWNER", looking for "READER")
2024-09-19T21:44:24.224-0700 [DEBUG] provider.terraform-provider-google_v6.3.0_x5: 2024/09/19 21:44:24 [DEBUG] Skipping item with userByEmail= , looking for "[email protected]")
2024-09-19T21:44:24.224-0700 [DEBUG] provider.terraform-provider-google_v6.3.0_x5: 2024/09/19 21:44:24 [DEBUG] Skipping item with userByEmail= "[email protected]", looking for "[email protected]")
Steps to reproduce
Create a service account with upper case email address
Use google_bigquery_dataset_access to assign a BigQuery role to the upper case service account email.
Run terraform apply. Fails with error Error: Provider produced inconsistent result after apply
Important Factoids
Using application default credentials to perform terraform plan and terraform apply
It works fine if the service account email is all lower case. Issue happens only for upper/mixed case service accounts.
References
There have been similar issues in the past. We were hoping that 17994 being the latest one, would have fixed the issue but even the latest version 6.3.0 has the issue.
Community Note
Terraform Version & Provider Version(s)
Terraform v1.9.6
on darwin_arm64
Affected Resource(s)
google_bigquery_dataset_access
Terraform Configuration
Debug Output
https://gist.github.com/kamal-1/49cd54c47b1733296b918c08f71d0bb7
Expected Behavior
Terraform apply should succeed after the access is granted to the service account.
Actual Behavior
Terraform apply completes with an error. Note that the access is granted but it fails while validation for service accounts having upper case or mixed case email addresses.
Steps to reproduce
google_bigquery_dataset_access
to assign a BigQuery role to the upper case service account email.terraform apply
. Fails with errorError: Provider produced inconsistent result after apply
Important Factoids
References
There have been similar issues in the past. We were hoping that 17994 being the latest one, would have fixed the issue but even the latest version 6.3.0 has the issue.
#17994
#11985
The text was updated successfully, but these errors were encountered: