GCP GCS
This takes about 10 minutes to set up end-to-end.
This guide explains how to connect GCP Cloud Storage to the Weekerp API.
It includes the full process of creating credentials and registering them in Weekerp.
Required information for connection
To allow Weekerp to access your images, you need to provide the following:
service account key (JSON)
Client email
Project Id
private key
bucket name
Getting credentials (GCP)
If you’re not familiar with GCP, we recommend creating a new read-only Service Account so Weekerp can read images from your bucket.
Open the GCP Console → Service Accounts → Create service account
Enter a Service Account name (e.g.,
weekerp-cdn-reader) → Create and ContinueSet the role → search/select Storage Object Viewer → Done
Select the created Service Account → Keys tab → Add Key → Create new key → JSON → Create
Save the downloaded JSON key file (do not share externally).
In the GCP Console → Buckets, confirm the Bucket name to connect.
In Weekerp → Sources → Add Source → Google Cloud Storage (GCS)
Enter the Bucket name + upload the JSON key file → Next
Enter an Alias and create it to add the source.
Below is the same guide shown in images.
1. Search for “Service Accounts” in the GCP Console

2. Click “Create service account”

3. Create a Service Account
Enter
weekerp-cdn-reader(you can change this)Click Create and Continue

4. Grant permissions to the account, and open the Role dropdown

5. Search and assign Storage Object Viewer
Search for Storage Object Viewer
Click Storage Object Viewer at the top of the results

6. Finish granting permissions
Click Done

7. Verify the created account and open its details
Confirm the created account
Click the account name

8. Create a key (JSON)
Click the Keys tab
Click Add Key
From the dropdown, click “Create new key”

9. Select the key type
Choose JSON
Click Create (bottom-right)

10. Verify the downloaded key file (.json)
.json)After downloading the JSON file, you’ll receive a key like the following (do not share externally).
11. Search for Buckets in the GCP Console (to confirm the bucket name)

12. Confirm the Bucket name
Example:
weekerp-test-2

13. You should have the following information ready:
Credential JSON file (Step #10)
Bucket name (Step #12)
14. In Weekerp, click Add Source (top-right)
Open Weekerp
Click the Source tab
Click Add Source


15. Select Google Cloud Storage


16. Enter credential information
Enter the Bucket name
Upload the JSON file


If your files are stored like below, you can set BasePath to / or /assets.
/dog.jpg
/assets/cat.png
Request example
cdn.weekerp.com/image/{alias}/dog.jpg
Origin request
With BasePath set: https://static.example.com/
assets/dog.jpgWithout BasePath: https://static.example.com/dog.jpg
For more details, please refer to BasePath.
17. Review the entered information
Confirm the details
Click Next


18. Enter the source alias
Enter the alias you want to use
Create the alias


19. Verify the created data source


Use it like this:
cdn.weekerp.com/image/weekerp-assets/dog.jpg
cdn.weekerp.com/image/weekerp-assets/dog.jpg?ai=Rotate the image to the right
cdn.weekerp.com/video/weekerp-assets/test-video.mp4
All settings are complete.
In general, it takes about 5–10 minutes to propagate the connection across all global environments.
Last updated