-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
google_bigquery_dataset_iam_member requires undocumented project parameter #6769
Comments
@preston-hf I am able to run below code without adding the project. Am I missing the point you made? How can I repro your issue? resource "google_bigquery_dataset_iam_member" "editor" {
dataset_id = google_bigquery_dataset.dataset.dataset_id
role = "roles/bigquery.dataEditor"
member = "user:[email protected]"
}
resource "google_bigquery_dataset" "dataset" {
dataset_id = "issue6769dataset"
friendly_name = "test"
description = "This is a test description"
location = "EU"
default_table_expiration_ms = 3600000
labels = {
env = "default"
}
access {
role = "OWNER"
user_by_email = google_service_account.bqowner.email
}
access {
role = "READER"
domain = "hashicorp.com"
}
}
resource "google_service_account" "bqowner" {
account_id = "bqowner"
} |
Do you have a default project set on your provider possibly? |
I have been getting this error:
Pretty standard, I get it all of the time. The main issue here is you can't specify the project a dataset is in by using the full dataset id, only the dataset name without the project. Also, the project var is totally undocumented. |
@preston-hf can you provide the config that will fail? Thanks |
@preston-hf I do have below environment variable. |
@preston-hf is this still an issue with you? If yes, could you please provide the config so I can repro it? |
The issue still exists, yes. Unfortunately I can't provide proprietary config here and I don't have more time to track this down. The quick fix would be to document that this resource accepts the project parameter. |
@preston-hf Using above code, I tested the resource does accept |
As I said, the docs need to be updated to show that they accept a project parameter. I do understand that it accepts one, I am using it. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
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)
Problem
If
project
is a supported variable, it should be documented. As it seems now, you would specify the project by referencing a dataset resource's id field, which matches the example syntax. Unfortunately this doesn't work, and if you don't specify a project, you receive an error.The text was updated successfully, but these errors were encountered: