Google Cloud storage
Connect your Google Cloud Storage bucket to Squid
To access your Google Cloud Storage bucket through Squid, first add the integration to Squid in the console.
-
In the Squid Console, navigate to the Integrations page and select the Google Cloud Storage integration.
-
Provide the following details:
- Integration ID - Choose an ID that is brief and helps identify the integration.
- 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 integration information. Once verified, click Add integration.
To access the storage bucket from the client, create a reference to a StorageClient using the storage()
method, passing your storage integration ID:
Client code
const topic = squid.storage('YOUR_STORAGE_INTEGRATION_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.