Skip to main content

Connecting a Google Cloud Account

To connect your GCP account to OpsHelm, follow the steps below.

Start the onboarding process

  1. First, go to the Accounts page in the dashboard.
  2. On the Accounts page, click the Add Account button, and select Google Cloud under Cloud Provider.
Accounts Page Screenshot showing the Add Account button
  1. In the onboarding modal, specify a Display Name1 for your account and enter your GCP Project ID. Then, click continue to begin the onboarding process.

    Note: Be sure to enter the GCP Project ID rather than the Project Number:

    Screenshot showing the location of the project ID in the Google Cloud console
GCP Onboarding modal screenshot showing the display name and project ID fields

Authorize OpsHelm

Once the onboarding process is started, you need to authorize OpsHelm to connect to your GCP account. This involves granting several roles to the OpsHelm service account created specifically for interacting with your account. The sections below describe how to assign the necessary roles to the OpsHelm service account. While we recommend using Terraform (or any other infrastructure-as-code tool) to manage this configuration, manual steps are also included below.

In order to simplify the process, the application provides the necessary Terraform configuration for granting the required roles Copy the supplied Terraform configuration from the onboarding modal, add it to the Terraform configuration associated with your account, and apply it. Once applied, click the Continue button in the onboarding modal.

GCP Onboarding modal screenshot showing the Terraform configuration

CLI Configuration

In addition to the Terraform configuration, the onboarding process also provides the gcloud CLI commands required to authorize OpsHelm. The easiest way to execute the CLI commands is in a Cloud Shell directly in the Google Cloud console.

GCP Onboarding modal screenshot showing the CLI commands

Manual Configuration

If you wish to manually authorize OpsHelm, follow the steps below to grant the required roles to the service account.

  1. Copy the service account name from the OpsHelm dashboard
GCP Onboarding modal screenshot showing the service account name
  1. Navigate to the Google Cloud IAM Console
  2. Click Grant Access
  3. Enter the service account name under the Add principal section
  4. Under Assign roles, search for and add the following roles:
    • roles/viewer
    • roles/cloudasset.owner
    • roles/logging.configWriter
    • roles/resourcemanager.projectIamAdmin
  5. Click Save
  6. In the OpsHelm dashboard, click Continue to resume the onboarding process.

Wrapping Up

After authorizing OpsHelm and clicking Continue, the onboarding process will connect your account to OpsHelm. The onboarding screen will display the status on the onboarding process while it's in progress.

Screenshot of the onboarding modal displaying progress.

Once the onboarding process is complete, click the Close button.

Screenshot of the onboarding modal in the complete state.

Footnotes

  1. The Display Name is shown throughout the dashboard alongside information and resources associated with the account. We recommend choosing a name that's easily recognizable.