Google Cloud Storage
Connect your Google Cloud Storage bucket to Squid
To access your Google Cloud Storage bucket through Squid, first add the connector in the Squid Console.
-
In the Squid Console, navigate to the Connectors page and select the Google Cloud Storage connector.
-
Provide the following details:
- Connector ID - Choose an ID that is brief and helps identify the connector.
- Bucket name - The name of the GCS bucket to connect.
- Credentials JSON string - Provide a Google Cloud service account with the storage bucket permissions you want Squid to have. This value is securely stored using Squid Secrets to ensure it remains private.
-
Click Test connection to verify the connector information. Once verified, click Add connector.
To access the storage bucket from the client, create a reference to a StorageClient using the storage()
method, passing your storage connector ID:
Client code
const topic = squid.storage('YOUR_STORAGE_CONNECTOR_ID');
With this storage instance, you can upload files, read metadata, generate download URLs, and download content. To learn more about managing files from the client, view the Squid storage documentation.