Installation and Setup

Required Permissions

To minimize security risks, Inductiva requires only the following minimal GCP permissions:

  • Compute Instance Admin (v1) role, or a custom role with these specific permissions:
    • compute.instances.create - To create VMs in your account
    • compute.instances.delete - To delete VMs (including auto-termination)
    • compute.instances.setMetadata - To set startup script and configuration

Installing and Configuring Google Cloud CLI

Installation

Install the Google Cloud CLI on your system:

Linux/macOS:

# Download and install
curl https://sdk.cloud.google.com | bash

# Restart your shell or run:
exec -l $SHELL

Windows: Download and run the installer from Google Cloud CLI

Alternative installation methods:

Authenticate with Google Cloud

After installation, authenticate with your Google Cloud account:

# Initialize gcloud
gcloud init

The gcloud init command will:

  1. Open a browser window for authentication
  2. Set up your default project
  3. Configure your gcloud CLI settings

Verify Your Setup

Verify that your authentication is working correctly:

# Check current account
gcloud auth list

# Check current project
gcloud config get-value project

Enable Required APIs

Make sure the Compute Engine API is enabled in your GCP project:

# Enable Compute Engine API (required for launching VMs)
gcloud services enable compute.googleapis.com

You can also enable this through the GCP Console.

Testing Your Setup

After completing the GCP configuration, test that everything works together:

# Test GCP authentication
gcloud auth list

# Test project access
gcloud config get-value project

# Test Compute Engine API access
gcloud compute instances list --limit=1

If all commands execute without errors, your setup is ready for BYOC.