Google Cloud Storage Setup
Connect your Google Cloud Storage bucket to Snipish using S3-compatible interoperability mode.
Prerequisites
- A Google Cloud account with a project
- Billing enabled on the project
Step 1: Create a Storage Bucket
- Go to Cloud Storage → Create Bucket
- Enter a globally unique name (e.g.,
snipish-screenshots-yourname) - Choose a location type and region
- Select Standard storage class
- Keep Uniform access control
- Click Create
Step 2: Configure CORS
Create a file called cors.json and apply it using gsutil:
[
{
"origin": ["https://snipish.app"],
"method": ["GET", "PUT", "HEAD"],
"responseHeader": ["*"],
"maxAgeSeconds": 3600
}
]gsutil cors set cors.json gs://snipish-screenshots-yourname
Step 3: Create HMAC Keys (S3-Compatible)
Snipish connects via the S3-compatible API. You need HMAC keys:
- Go to Cloud Storage → Settings → Interoperability
- Under Service account HMAC, click Create a key for a service account
- Select or create a service account with Storage Object Admin role on your bucket
- Copy the Access Key and Secret
Warning: Save your Secret immediately — Google Cloud will only show it once.
Step 4: Configure in Snipish
- Go to Settings → Storage in Snipish
- Click Connect Your Own Bucket
- Select Google Cloud Storage as the provider
- Enter the Bucket Name
- For the endpoint, use:
https://storage.googleapis.com - Paste your Access Key and Secret
- Click Validate & Connect
Step 5: Verify
Upload a test screenshot. Check your bucket in the Google Cloud console — the file should appear within seconds.
Troubleshooting
- Validation fails — Ensure the service account has the Storage Object Admin role on the specific bucket, not just the project.
- CORS errors in browser — Verify the CORS configuration was applied correctly using
gsutil cors get gs://your-bucket. - HMAC keys not available — Make sure interoperability access is enabled in the Cloud Storage settings.