Skip to main content

Intelligent Compute credentials on Google Cloud

Seqera uses Google credentials to access your Google Cloud project for Intelligent Compute on Google Cloud. The service account in the credentials must have the Google Cloud IAM roles plus the Intelligent Compute roles.

Workload Identity Federation not supported

Intelligent Compute does not support Google credentials that use Workload Identity Federation yet. Use a service account key.

Prerequisites

You need the following:

  • The IAM roles for the compute environment service account and for the worker VM service account. See Required permissions.

Grant the roles​

Intelligent Compute uses two identities in your project:

  • The compute environment service account: The service account in your Seqera credentials. Grant it the Google Cloud IAM roles, plus the Intelligent Compute roles.
  • The worker VM service account: The default Compute Engine service account of the project. Task VMs run as this account. Grant it roles only if it does not already hold the Editor role.

Intelligent Compute needs Logs Viewer (roles/logging.viewer) in addition to the Google Cloud IAM roles, to read task logs. See Required permissions for the roles on each account.

Create a service account key​

To authenticate using a service account key, create a service account JSON key file:

  1. In the Google Cloud navigation menu, select IAM & Admin > Service Accounts.
  2. Select the email address of the service account.
  3. Select Keys > Add key > Create new key.
  4. Select JSON as the key type.
  5. Select Create.

Google Cloud downloads a JSON file to your computer. It contains the credential you need to configure the compute environment in Seqera.

Seqera accepts only service account keys ("type": "service_account"). Seqera rejects other Google credential files, such as external_account files, and keys with a non-Google token_uri or a universe_domain other than googleapis.com. If Seqera rejects the key of an existing credential, the credential stops working and is marked INVALID. Replace the key to restore it.

Add the service account key in Seqera​

  1. In your workspace, go to Credentials and add new credentials. You can also select + next to the Credentials drop-down when you create a compute environment.
  2. Enter a name for the credentials, for example, Google Cloud Credentials, and for Provider, select Google.
  3. Paste the contents of the JSON file in the Service account key field.
  4. Select Add.

Next step​

Create the compute environment with the Seqera Intelligent Compute compute mode.