Integrating Google Cloud using a service account key

Creating a service account key for a new account

  1. Go to your Google Cloud service account, and select CREATE SERVICE ACCOUNT.

  2. Add the Service account details, and select CREATE AND CONTINUE.

  3. Add the following roles:

    • viewer

    • iam.securityReviewer

    • storage.objectViewer conditional to tfstate suffix

  4. Select SAVE > DONE.

  5. Select the kebab menu.

  6. Select Manage keys > ADD KEY > Create new key.

  7. Select JSON > CREATE. Selecting CREATE downloads a service account key file.

  8. In Firefly, select Settings > Integrations.

  9. Select Add New > Google Cloud > Service Account Key.

  10. Enter a descriptive name in the Nickname field.

  11. Paste or upload the account key file into the Service Account Key box.

  12. Select Next.

Creating a service account key for an existing account

  1. Add the following roles to the account you want to integrate:

    1. viewer

    2. iam.securityReviewer

    3. storage.objectViewer conditional to tfstate suffix

  2. Select the kebab menu.

  3. Select Manage keys > ADD KEY > Create new key.

  4. Select JSON > CREATE. Selecting CREATE downloads a service account key file.

  5. In Firefly, select Settings > Integrations.

  6. Select Add New > Google Cloud > Service Account Key.

  7. Enter a descriptive name in the Nickname field.

  8. Paste or upload the account key file into the Service Account Key box.

  9. Select Next.

Attaching subordinate projects to your primary GCP project

Use the same service account key to simultaneously integrate multiple GCP projects.

Procedure

  1. For your primary project, select IAM & Admin > Service Accounts. Copy the principal (associated email address).

  2. Select each subordinate project for which you want to combine with the primary account.

  3. Select GRANT ACCESS.

  4. In the New principals field, enter the email address of the primary project.

  5. In the Role field, select the role as a Viewer and SAVE.

Last updated