Please note that the procedures outlined in this guide pertain to connecting a GCS bucket and LABELLERR within the same Google Cloud account.
Prerequisites
1
Role Creation
Go to the IAM & Admin Console:
Add Permissions:
- Open the Google Cloud Console
- Navigate to IAM & Admin > Roles
- Click on + CREATE ROLE
- Enter a Title, ID, and Description for the role
- Click CONTINUE

- In the Permissions section, add the necessary permissions
storage.buckets.get
storage.buckets.update
storage.objects.get
storage.objects.list
- Click CONTINUE
- Review the role details
- Click CREATE

2
Service Account Creation
Go to the Service Accounts Console:
Create a Service Account:
Grant Users Access to this Service Account (Optional):
- In the Google Cloud Console, navigate to IAM & Admin > Service Accounts

- Click on + CREATE SERVICE ACCOUNT
- Enter a Service account name and Description
- Click CREATE AND CONTINUE
- In the Grant this service account access to project section, add the role created in the previous step
- Click CONTINUE

- If needed, add users who can manage this service account
- Click DONE
3
Generate and Download Service Account Key
Select Service Account:
Create Key:


- In the Service Accounts console, find the service account you created
- Click the ⋮ (three vertical dots) next to the service account and select Manage keys

- Click ADD KEY > Create new key



- Click CREATE
- A JSON key file will be downloaded. Keep this file secure as it contains the credentials needed to access the GCS bucket
4
Assign IAM Policy to GCS Bucket
- Go to the Cloud Storage Console: Navigate to Cloud Storage > Buckets in the Google Cloud Console
- Select Your Bucket: Click on the name of your private bucket. You will see the bucket details, including its Name, Location, and other information
- Open Permissions: Click on the Permissions tab
- Add Member:
- Click ADD
- In the New members field, enter the service account email
- Select the role you created earlier
- Click SAVE
5
Use the Labellerr tool to Access the GCS Data
Click ‘Google Cloud Storage’ from the sources list and then ‘Create New Connection’. There are two options to connect your data through ‘Private Bucket’ and ‘Public Bucket’.
After filling the details successfully, click on Test Connection, if the details are correct, you should see this.
Else you will get this error.
If successfully tested the connection and your files are recognized, you will need to fill the Connection name and Description(Optional).




