eebruu
eebruu

Reputation: 149

How can I add the BigQuery admin role to the Cloud Deployment Manager Jinja file?

I use Cloud Deployment Manager to create datasets and tables. I need to give bigquery.admin role to service account. I have already give OWNER access role but it is not enough to process. Is it possible to give BigQuery admin role with using Cloud Deployment Manager?

resources:
- name: big-query-dataset
  type: bigquery.v2.dataset
  properties:
    datasetReference:
      datasetId: id
    location: US
    access:
    - role: OWNER
      "userByEmail": "{{ SERVICE_ACCOUNT }}"

Upvotes: 2

Views: 282

Answers (1)

Adrian nieto macias
Adrian nieto macias

Reputation: 123

Here you got the role bigquery.admin

Based on the sample of code provided, it should look like this:

 - role: roles/bigquery.admin
      "userByEmail": "{{ SERVICE_ACCOUNT }}"

However, take a look at this documentation which explains how to set an IAM policy in your configuration with Deployment Manager.

Hope this helps.

Upvotes: 1

Related Questions