> For the complete documentation index, see [llms.txt](https://docs.flosum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flosum.com/global-settings/environment/storages/adding-a-google-cloud-storage-bucket-for-storage.md).

# Adding a Google Cloud Storage Bucket for Storage

{% hint style="success" %}

#### Required User Credentials

\[**Flosum User**] - **SystemAdministrator** Role
{% endhint %}

## ![](https://579543750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FKK27dGExFDtzaiuy5OQo%2FSummary2-Small-Icon.svg?alt=media\&token=fd28bf21-00ee-4db0-9dc5-73ec71dbe391) Overview

By default, Flosum Backup & Archive stores data in a Flosum-managed AWS S3 bucket. However, customers may optionally use their own Google Cloud Storage bucket for data storage. This article explains how to configure your Flosum tenant to use a customer-managed Google Cloud Storage bucket instead.

Flosum connects to your bucket with two sets of credentials from a Google Cloud service account: a JSON key, which Flosum uses for file operations, and an HMAC key, which Flosum uses for backup data.

{% hint style="info" %}
Adding a Google Cloud Storage bucket doesn't create the bucket or move existing backup data to it.
{% endhint %}

## Before You Begin

Set up the following in Google Cloud before you add the storage in Global Settings:

1. A Cloud Storage bucket for Flosum Cloud Apps to store data in.
2. A service account with a role that lets it read, write, list, and delete objects in the bucket. Flosum has been tested with the **Storage Object User** and **Storage Legacy Bucket Reader** roles. Other roles that grant these permissions may also work.
3. A JSON key for the service account. Go to **IAM & Admin > Service Accounts**, click the service account, then click **Keys > Add key > Create new key** and select **JSON**.
4. An HMAC key for the same service account. Go to **Cloud Storage > Settings > Interoperability** and create a key for the service account.

{% hint style="info" %}
Using one dedicated service account for both the JSON key and the HMAC key is the simplest setup.
{% endhint %}

{% hint style="warning" %}

#### Save the HMAC Secret

Google Cloud shows the HMAC secret only once, when you create the HMAC key, so save it then. If you lose the secret, create a new HMAC key.

A new HMAC key can take up to 60 seconds to become active.
{% endhint %}

{% hint style="info" %}

#### Service Account Key Creation Is Disabled

If Google Cloud shows `Service account key creation is disabled` when you create the JSON key, an organization policy in your Google Cloud organization is blocking it. A user with the **Organization Policy Administrator** role on the Google Cloud organization must allow key creation for the project.
{% endhint %}

For more information, see the following Google Cloud articles:

* [Create and delete service account keys](https://docs.cloud.google.com/iam/docs/keys-create-delete)
* [Manage HMAC keys for service accounts](https://docs.cloud.google.com/storage/docs/authentication/managing-hmackeys)

## Adding Google Cloud Storage

{% stepper %}
{% step %}

### Access Global Settings

1. From any **Flosum Cloud App**, click the **App Switcher** icon at the top of the left sidebar menu.

   <div align="left"><figure><img src="https://579543750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Fgh5FcQCnErKAjJ7isiuB%2FGS-Access-01.png?alt=media&amp;token=ddf01506-f133-4e49-825a-76a2a237e3a8" alt="" width="563"><figcaption></figcaption></figure></div>
2. Click **Global Settings**.&#x20;

   <div align="left"><figure><img src="https://579543750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Fx5vntzgpLuT50fMTzwT9%2FGS-Access-02.png?alt=media&amp;token=f67a125f-5087-47c2-9bc6-9393c3d2b7a5" alt="" width="563"><figcaption></figcaption></figure></div>
3. The **Global Settings** app will open in a new tab.

{% hint style="info" %}
Global Settings can also be accessed by logging in directly via the Flosum Cloud Apps Login URL. See the following article for login instructions.

* [Log In To Global Settings](https://docs.flosum.com/global-settings/getting-started/log-in-to-global-settings.md)
  {% endhint %}
  {% endstep %}

{% step %}

### Create Storage

1. Click **Storages** from the sidebar menu.
2. Click **CREATE STORAGE**.

   <div align="left"><figure><img src="https://content.gitbook.com/content/sEk2hU5IMh3HEY5dJZjR/blobs/1kmDrS9wnSDuxx5LRLY2/Adding_a_Google_Cloud_Storage_Bucket_for_Storage-001.png" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Select Storage Type

1. Enter a meaningful name for the storage in the **Name** textbox.
2. Click the **Storage Type** dropdown.

   <div align="left"><figure><img src="https://content.gitbook.com/content/sEk2hU5IMh3HEY5dJZjR/blobs/q9PZHglgLihs3xgnFI75/Adding_a_Google_Cloud_Storage_Bucket_for_Storage-002.png" alt="" width="375"><figcaption></figcaption></figure></div>
3. Select **Google Cloud Storage**.

   <div align="left"><figure><img src="https://content.gitbook.com/content/sEk2hU5IMh3HEY5dJZjR/blobs/SngIa5xv4cwNjvqU8THB/Adding_a_Google_Cloud_Storage_Bucket_for_Storage-003.png" alt="" width="375"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Provide Google Cloud Credentials

Enter the following values to connect to your Google Cloud Storage bucket:

{% hint style="info" %}
Field locations in Google Cloud may vary from those listed in the table. Use the table as a reference to help locate the appropriate fields.
{% endhint %}

| Field              | Google Cloud Field                                                                                                                                        |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Project ID**     | JSON key file > `project_id`                                                                                                                              |
| **Bucket name**    | Cloud Storage > Buckets > **Name** (Only enter the bucket name, without `gs://` or a folder path.)                                                        |
| **Client email**   | JSON key file > `client_email` (This is the service account's email address.)                                                                             |
| **HMAC access ID** | The access ID of the HMAC key, from Cloud Storage > Settings > Interoperability                                                                           |
| **HMAC secret**    | The secret shown when you created the HMAC key                                                                                                            |
| **Private key**    | JSON key file > `private_key` (Copy the whole value, from `-----BEGIN PRIVATE KEY-----` to `-----END PRIVATE KEY-----`. Don't paste the whole JSON file.) |

<div align="left"><figure><img src="https://content.gitbook.com/content/sEk2hU5IMh3HEY5dJZjR/blobs/cVPbBRFR5r3aHkrCWLRM/Adding_a_Google_Cloud_Storage_Bucket_for_Storage-004.png" alt="" width="375"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### Create Google Cloud Storage

1. Click **CREATE** to add the Google Cloud Storage bucket.

   <div align="left"><figure><img src="https://content.gitbook.com/content/sEk2hU5IMh3HEY5dJZjR/blobs/g6KiGRzqAreo3mQz6uOo/Adding_a_Google_Cloud_Storage_Bucket_for_Storage-005.png" alt="" width="375"><figcaption></figcaption></figure></div>

{% hint style="info" %}

#### If You Receive an Error

If you receive an error when adding storage, check the following:

* The bucket exists, and the **Bucket name** is correct.
* The **Client email** and **Private key** belong to the same service account.
* The **Private key** is complete.
* The **HMAC access ID** and **HMAC secret** are from the same HMAC key, and the key is active.
* The service account can read, write, list, and delete objects in the bucket.
  {% endhint %}

2. Once added successfully, the storage appears in the list on the **Storages** page with the storage type `GOOGLE_CLOUD_STORAGE`.

   <div align="left"><figure><img src="https://content.gitbook.com/content/sEk2hU5IMh3HEY5dJZjR/blobs/qMV9KDiFP05Dz89MWhov/Adding_a_Google_Cloud_Storage_Bucket_for_Storage-006.png" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.flosum.com/global-settings/environment/storages/adding-a-google-cloud-storage-bucket-for-storage.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
