Instructions how to setup a Google Cloud Storage bucket as file repository


You need to have an Google Cloud Platform account. If not, you can register here As a new customer Google will provide you with 300 USD for the first 12 months and alot of other benefits forever free, e.g. 5 GB of Google Cloud Storage. More details can be found here:

Setup Guide

This guide will walk you through the creation of a bucket, the configuration of the bucket and the creation of a service account, before it helps you to configure it in psono.

Create bucket

1) Login to

2) Create a project at the top

3) Go to Storage -> Browser

Step 3 Go to storage

4) Click “Create bucket”

Step 4 Create bucket

5) Click “Setup bucket”

Specify a name, a region and click “Create”.

Step 5 Setup bucket

Configure CORS

6) Click at the top to open a “Cloud Shell”

Step 6 Open Cloud Shell

7) Copy & paste the following two commands

cat <<EOT >> gcs_cors.json
      "origin": ["*"],
      "responseHeader": ["content-type", "cache-control", "if-modified-since", "pragma"],
      "method": ["*"],
      "maxAgeSeconds": 5

gsutil cors set gcs_cors.json gs://psono-file-upload

Step 6 Open Cloud Shell

Create service account

8) Go to IAM & admin > Service accounts

Step 8 Go to IAM & admin service accounts

9) Click “Create service account”

Step 9 click "Create service account"

10) Specify the service account name

Step 10 specify the service account name

11) Configure the role and grant “Storage Object Admin”

Step 11 Configure the role as storage object admin

12) Click “Create Key” and select JSON

Step 12 Create the key as JSON

Configure the file repository

13) Login to Psono

Step 13 Login to Psono

14) Go to “Other”

Step 14 Go to other

15) Go to “File Repositories” and click “Create new file repository”

Step 15 Go to "File Repositories" and click "Create new file repository"

16) Configure the file repository

Use any descriptive title, select GCP Cloud Storage as type, add your buckets name and copy paste the content of the JSON Key.

Step 16 Configure the file repository

You can now upload files from the datastore to this file repository.

Edit me