Google Object Storage as a Source
Google Cloud Storage (GCS) is an object storage service offered by Google Cloud Platform (GCP). This page contains the setup guide and reference information for the Google Cloud Storage source connector.
Pre-requisites
Bucket Name: Name of the GCS bucket where the file(s) exist.
Service Account Information: Google Cloud service account key in JSON format.
Setup guide
Step 1: Create a New Service account
Open the Service Accounts page in your Google Cloud console.
Select an existing project, or create a new project.
At the top of the page, click + Create service account.
Enter a name and description for the service account, then click Create and Continue.
Under Service account permissions, select the roles to grant to the service account, then click Continue.
Step 2: Generate a key
Go to the API Console/Credentials page and click on the email address of the service account you just created.
In the Keys tab, click + Add key, then click Create new key.
Select JSON as the Key type. This will generate and download the JSON key file that you’ll use for authentication. Click Continue.
Step 3: Enable the Google Drive API
Go to the API Console/Library page.
Make sure you have selected the correct project from the top.
Find and select the Google Drive API.
Click ENABLE.
Step 4: Grant Permissions
In the Google Cloud console, go to the Cloud Storage Buckets page.
In the list of buckets, click the name of the bucket for which you want to grant a principal a role.
Select the Permissions tab near the top of the page.
Click the + Grant access button.
In the New principals field, enter your service account address.
Select the role (or roles) from the Select a role drop-down menu to give access to storage account. The roles you select appear in the pane with a short description of the permissions they grant.
Click Save.
Step 5: Setting Up Google Cloud Storage Source on TIR
Go to TIR
Go to Data Syncer > Sources > Create Source.
Choose Google Cloud Storage.
Add your Bucket Name from where you want your data to be ingested.
Add the JSON file that was downloaded in Step 2 in the Service Account Information.
Click CREATE.