简体   繁体   中英

Setting up permissions for Google Cloud AI Platform Notebooks

I'm setting up data scientists with AI Platform Notebook instances. For each one I set the "Access to Jupter Lab" permission to "Single user only". By default the instance will have the permissions of the default gce service account. I think that also even GCP Python client libraries used in a Jupyter notebook (eg the Python BigQuery library) are automatically set up with the default gce service account - is this correct?
The permissions on my default compute engine service account are very broad, I would like to create a new service account with much more restricted permissions, eg only access to BigQuery, and only read write to certain datasets. How can I set up or change the notebook instances to only have the permissions of this new service account? Is it possible? Also noting whether or not I'm able to access the instances shell, given the permission is set to "Single user only".

You should frist create a custom service account with your desired permissions. If you want to grant permissions to specific datasets you can do that from bigquery by adding this particular service account.

Once your service account has all the permissions set you can specify that service account when creating a notebook instance:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM