Alex
Alex

Reputation: 79

Terraform granting access on GCP Bigquery

I am trying to find what is the difference between the two terraform modules, google_bigquery_dataset_access and google_bigquery_dataset_iam, and I cannot seem to find clear information or maybe I am looking at it wrong. Both would give permissions on a dataset.

Could someone shed some light? Thanks!

Upvotes: 1

Views: 909

Answers (1)

guillaume blaquiere
guillaume blaquiere

Reputation: 75810

With the both you can set roles on Dataset for users. But

  • With google_bigquery_dataset_access you can define/grant authorized view
  • With google_bigquery_dataset_iam, you can define IAM and bindings in an idiomatic way and a more modern way

IMO, access is the legs of the BigQuery legacy version. If you can avoid to use it for IAM bindings, only for authorized view, it's better!

Upvotes: 1

Related Questions