What is Google Cloud Storage (GCS)?
Google Cloud Storage is an object-based storage system from the Google Cloud Platform (GCP) that stores unstructured data (e.g. images, videos, backups, JSON files, etc.) in so-called buckets. It is highly scalable, redundant and globally available.
What are “Buckets”?
Buckets are containers that hold your data. Everything you store in Cloud Storage must be in a bucket. Buckets allow you to organize your data and control access to your data. Unlike directories and folders, however, you cannot nest buckets.
You can find detailed and further information about Google Cloud Bucket on the official website.
How to connect a product catalog using Google Cloud Storage
You can find out how to import a product catalog here.
When you set up the connection, you must enter:
the "bucket name"
the "object name" (the name of the file as it is stored in your bucket)
You also need a so-called "Secret JSON-Key".
Create a Service Account Key "JSON-Key"
Identity and access management - create a secret key json
To create a secret JSON file for Google Cloud Storage, you'll need to generate a service account key as a JSON file. This involves creating a service account, generating a new key for it (in JSON format), and then storing the file securely, potentially in Google Cloud Secret Manager.
Here's a step-by-step guide:
Create a Service Account:
Go to the Google Cloud Console.
Navigate to IAM & Admin > Service Accounts.
Click + CREATE SERVICE ACCOUNT.
Enter a name and description for your service account and click CREATE AND CONTINUE.
Grant roles: Select the appropriate roles for your service account. For accessing Cloud Storage, you'll need at least the
roles/storage.objectViewerrole (or a more permissive role if needed).
Click "DONE"
Generate a JSON Key:
In the Service accounts list, click on the email address of the service account you just created.
Go to the Keys tab.
Click "Add key > Create new key".
Select JSON as the Key type
Click "CREATE".
A JSON file will be downloaded to your computer.
Securely Store the JSON File
The JSON-File to upload for authentication should look like this:
{
"type": "service_account",
"project_id": "my project name",
"private_key_id": "here private key id",
"private_key": "-----BEGIN PRIVATE KEY-----\/\/here private key=\n-----END PRIVATE KEY-----\n",
"client_email": "here email-address",
"client_id": "your personal ID",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_xxxx_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_xxxx_cert_url": "https://www.googleapis.com/robot/v1/metadata/xxxx/thenameofyourserviceaccount.iam.gserviceaccount.com",
"universe_domain": "googleapis.com"
}
