Google Cloud Platform
  • 24 Mar 2022
  • 3 Minutes to read
  • Contributors
  • Dark
    Light

Google Cloud Platform

  • Dark
    Light

Customer Hosted GCP Storage Environment

To use GCP as your storage environment to backup your metadata and data objects, you need to configure it in the Vault application first.

  1. Head to the Backup Environment tab under the Settings module.
  2. Select GCP as the Storage Type.
  3. Enter the Label Name of your choice
  4. Enter your Cloud Storage Bucket Name. To create a new storage bucket, follow the below steps:
    1. In the Google Cloud Console, go to the Cloud Storage Browser page.
    2. Click Create bucket.
    3. On the Create a bucket page, enter your bucket information. To go to the next step, click Continue
      1. For Name your bucket, enter a name that meets the bucket naming requirements.
      2. For Choose where to store your data, select a Location type and Location option where the bucket data will be permanently stored. 
      3. For Choose a default storage class for your data, select a storage class for the bucket. The default storage class is assigned by default to all objects uploaded to the bucket. 
      4. For Choose how to control access to objects, select an Access control option. The access control model determines how you control access to the bucket's objects. 
      5. For Advanced settings (optional), add bucket labels, set a retention policy, and choose an encryption method.
      6. Click Create.
    4. In the Project ID field, enter the project ID for which you would like to add them in Vault. You can find the details in the Settings tab in your Google Cloud Console.Project ID
      Steps to create a new Project
      1. Go to the Manage resources page in the Cloud Console.
      2. On the Select organization drop-down list at the top of the page, select the organization in which you want to create a project. If you are a free trial user, skip this step, as this list does not appear.
      3. Click Create Project.
      4. In the New Project window that appears, enter a project name and select a billing account as applicable. A project name can contain only letters, numbers, single quotes, hyphens, spaces, or exclamation points, and must be between 4 and 30 characters.
      5. Enter the parent organization or folder in the Location box. That resource will be the hierarchical parent of the new project.
      6. When you're finished entering new project details, click Create.
  5. Now, upload the GC Storage Credential File for your GCP service account from your local system. The file is in JSON format. If you haven't created a service account yet, you can create a new one by following the below steps:
    1. In the Cloud Console, go to the Service Accounts page.
    2. Select a project. 
    3. Click Create Service Account.GC Storage Credential File
    4. Enter a service account name to display in the Cloud Console. 
    5. The Cloud Console generates a service account ID based on this name. Edit the ID if necessary. You cannot change the ID later. 
    6. Optional: Enter a description of the service account.
    7. If you do not want to set access controls now, click Done to finish creating the service account. To set access controls now, click Create and continue to the next step.create service account
    8. Optional: Choose one or more IAM roles to grant to the service account on the project. 
    9. When you are done adding roles, click Continue
    10. Optional: In the Service account users role field, add members that can impersonate the service account.
    11. Optional: In the Service account admins role field, add members that can manage the service account.
    12. Click Done to finish creating the service account.
    13. Go to the Actions tab and select the option: Manage Keysmanage keys
    14. In the Keys tab, go to Add Key > Create new key.
    15. Select the Key type as JSON and click on Create. The file gets downloaded to your local system.json
    16. Upload the downloaded JSON file in the GC Storage Credential File field.
  6. In Region, choose the GCP Region where your bucket resides.
  7. Click Save Settings.

Vault Hosted Backup Environment

To select the default Vault hosted environment to work on the Vault functionalities: 

  1. Select the checkbox: ARVault Hosted Backup Environment.
  2. Choose the Region where you want the bucket to reside.
  3. Click Save Settings.

Was this article helpful?