Connecting Google Cloud Storage
Connect Google Cloud Storage containers to AI Hub.
About this connection
Review the following functionality, limitations, and other considerations when connecting a Google Cloud Storage container.
-
Functionality — Connected Google Cloud Storage containers are supported for use as a source of input files, a destination for file output, and as an upstream or downstream integration in deployments.
-
Authentication — AI Hub requires the use of a Google Cloud Storage service account to connect to your storage container. AI Hub authenticates using a private key file associated with the service account.
-
Supported content — Any supported file types. You can specify a specific folder path as the mount point, otherwise the container’s root directory (
/
) is mounted and all contents are accessible.
Connecting Google Cloud Storage
Before you begin
Ensure you’ve set up a Google Cloud Storage account with the required roles and access and generated a private key file. For guidance, see Configuring a Google Cloud Storage service account.
-
In Workspaces, select a workspace to connect the drive to, then select the Data tab.
-
Click Add data source, then select Google Cloud Storage.
-
Select an audience.
-
Workspace members (Recommended) — Connect the drive to the selected workspace. Only members of the selected workspace have access.
-
Organization members — Connect the drive at the organization level, making it available to all workspaces.
-
-
Enter a display name for the drive. This name can’t be changed later.
-
Fill in your authentication and container details, then click Next.
-
Click Add.
Configuring a Google Cloud Storage service account
Connecting Google Cloud Storage as a drive requires a Google Cloud Storage service account. The Google Cloud Storage documentation is the most up-to-date reference, but the general process is described here.
-
From the Google Cloud console, create a Google Cloud Storage bucket with uniform access control. For improved security, create it as a private bucket.
-
Create a service account in Google Cloud’s Identity and Access Management (IAM) system.
-
In the Google Cloud console, create a key pair for the service account, selecting JSON as the key type.
-
Download the JSON credentials file for the service account.
-
Assign the service account the Storage Admin and Storage Object Admin roles for bucket access.
For more details, see the Google IAM permission documentation. -
Find the Client ID for the service account (available on the Service accounts page).
-
Using a Google Workplace administrator account, search for the service account’s client ID, and grant the service account access to the Google Cloud Platform OAuth scope
www.googleapis.com/auth/cloud-platform
.See the Google service account documentation for further guidance.
Updating a connection
Select configuration changes are supported.
- You can update the service account’s private key file.
-
In Workspaces, select All workspaces, then select the Data tab.
-
Click the overflow icon
of the drive to update, then select Modify configuration. -
Make any changes, then click Update to confirm.
Removing a connection
You can remove a connected drive to disconnect it and revoke AI Hub’s access to its contents.
Before you begin
Review the following limitations:
- Removing a drive completely disconnects the drive from AI Hub. Any processed AI Hub files stored on the drive aren’t deleted, but AI Hub loses the ability to reference those files in the future. While you can later reconnect the drive, doing so doesn’t restore the ability to reference files previously saved to the drive. To reference such files, you must re-upload them.
-
In Workspaces, select All workspaces, then select the Data tab.
-
Click the overflow icon
of the drive to remove, then select Remove. -
Type the confirmation text, then click Remove.