Setup

  1. Ensure you have administrative rights on the GCP organization.

  2. Before running, update the following values in the script using a text editor:

    1. Bucket Name: Use a unique bucket name to store GCP data before uploading it to the platform.

    2. Service Account Name: Use the same service account used for secret service integration. If the Secret Server integration is not used, follow steps 1 and 3 from the Secret Server integration first.

    3. Project ID: Use the Project ID to define the service account.

  3. Select from the Project selector dropdown located next to the Google Cloud logo, the GCP project where you want to install the bucket.

  4. Select the Activate Cloud Shell button to open the Cloud Shell Terminal within GCP, and run the script to set up the required resources.

  5. Run the following script inside the GCP console to complete the setup.

  6. Once the script is completed, to generate access key for the newly created service account navigate to IAM & Admin > Service Account and select the service account by name.

  7. Select the Keys tab and then got to Add Key > Create new key.

  8. Select the JSON check box to generate and download the new private key.

  9. On the service account's Details tab, copy the Unique ID value. You enter this numeric ID as the client ID when you grant domain-wide delegation.

Next, grant the service account domain-wide delegation. See Granting Additional Permissions for Google Service Accounts.

Troubleshooting

Installation Script Fails with a Permissions Error

Cause: Your GCP account lacks organization-level rights to create service accounts or buckets, or to grant permissions.

Solution: Ask your cloud administrator for the rights listed in the prerequisites, or ask them to run the script.

Bucket Name Is Rejected

Cause: Bucket names must be globally unique across all of Google Cloud.

Solution: Choose a more specific name, such as one that includes your company name or a random suffix. Update the script and run it again.