Using GCS
Google Cloud Storage (GCS) Connectors are secure gateways through which products can be moved in and out of the platform using GCS bucket transfers. It is referred to as a data storage connector. The first step in creating this connector is setting up a storage bucket to store the data you intend to access.
You must have access to a GCS cloud account. See Create storage buckets for more information. To create a GCP account, please visit Google Cloud Console. If you already have a GCP account, please follow the steps below.
Create a GCS bucket
Log into your GCS account.
Click Create a storage bucket.
Insert a Bucket Name following GCP's naming guidelines.
Choose where to store your data.
For learning purposes, choose Multi-region; however pick whichever works best for you.
Choose a storage class for your data.
For this example, select Standard.
Choose how to control access to objects.
For this example, select Fine-grained, which will enforce public access prevention.
Choose how to protect object data.
For this example, select None.
Press Create.
Now you are ready to connect your storage to the platform via a Connector.
Create a Service Account and Key File
The platform authenticates to your GCS bucket using a GCP service account JSON key file. You will need to create a service account and generate a key file before creating the connector.
Note: A paid GCP account is required to create service accounts and generate key files. Trial GCP accounts do not support this functionality.
In the Google Cloud Console, navigate to IAM & Admin > Service Accounts.
Click Create Service Account and follow the prompts to name and describe it.
Assign the following minimum roles to the service account:
storage.objectViewer(for read access)storage.objectAdmin(for write access)
Once created, open the service account and navigate to the Keys tab.
Click Add Key > Create new key, select JSON, and click Create. The key file will download to your machine.
Ensure the service account has access to your GCS bucket by navigating to your bucket in Cloud Storage, clicking Permissions, and granting the service account the appropriate roles.
Create the Connector
Click Manage on the Navigation bar.
Select Connectors to view the Manage Connectors screen.
Click the Create Connector button at the top right.
Enter a Name for your Connector and a Description (optional).
Choose Type > GCS.
Enter the GCS bucket name.
(Optional) Enter the GCS subdirectory.
Upload your GCP Key File (the service account JSON file generated above).
Click Create. A connection test will run and, if successful, will show Connection Test Status as Successful.
Click Close.