-
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
Fix bigquery dataset access iam roles with primative equivalent #3471
Conversation
@@ -0,0 +1,12 @@ | |||
var bigqueryAccessRoleToPrimitiveMap = map[string]string { | |||
"roles/bigQuery.dataOwner": "OWNER", | |||
"roles/bigQuery.dataEditor": "EDITOR", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be WRITER
as said in official doc?
"roles/bigQuery.dataEditor": "EDITOR", | |
"roles/bigQuery.dataEditor": "WRITER", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 4 files changed, 71 insertions(+), 5 deletions(-)) |
1 similar comment
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 4 files changed, 71 insertions(+), 5 deletions(-)) |
@@ -91,6 +91,11 @@ overrides: !ruby/object:Overrides::ResourceOverrides | |||
properties: | |||
datasetId: !ruby/object:Overrides::Terraform::PropertyOverride | |||
ignore_read: true | |||
role: !ruby/object:Overrides::Terraform::PropertyOverride | |||
diff_suppress_func: 'resourceBigQueryDatasetAccessRoleDiffSuppress' | |||
custom_expand: "templates/terraform/custom_expand/bigquery_access_role.go.erb" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need the custom expander because that's what gets used to find the item in the list, right? If so can you add a comment explaining as much? It took me a second to figure it out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 4 files changed, 71 insertions(+), 5 deletions(-)) |
…leCloudPlatform#3471) * account for iam vs primative bigquery roles * add test, fix description * s/EDITOR/WRITER * fix test * comments
Release Note Template for Downstream PRs (will be copied)
Fixes hashicorp/terraform-provider-google#6175