For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex Cloud Runtime

Deploy the Terraform authentication template in GCP

Learn how to deploy the Terraform authentication template in Google Cloud Console.

When you have downloaded the Terraform template file in the onboarding wizard, you must connect to Google Cloud Console to create a stack using the template file.

Prerequisites

Before you begin, ensure you have:

  1. Open your local terminal (Command prompt, PowerShell, or Terminal).

  2. Log in to your GCP account using the gcloud CLI:

    gcloud auth login
  3. Create a directory on your local machine to store and run the Terraform code. If you have more than one GCP connector, you need a separate directory for each one:

mkdir -p ~/terraform/gcp-connector-1
  1. Navigate to the directory you created and extract the Terraform files. Ensure all necessary Terraform files are present (main.tf, template_params.tfvars, etc).

cd ~/terraform/gcp-connector-1
tar -xzvf <your_template>.tar.gz
  1. Initialize Terraform in your project directory:

  1. Apply your Terraform configuration using the downloaded parameter file. When prompted, enter the project ID if you configured one in the onboarding wizard:

The Terraform template is deployed.

When the template is successfully uploaded to GCP, the initial discovery scan is started. When the scan is complete, you can view your cloud assets in Asset Inventory.

Last updated

Was this helpful?