Documentation Index
Fetch the complete documentation index at: https://enterprise-docs.crewai.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Use this guide to provision core Google Cloud infrastructure for CrewAI Platform with Terraform, then continue with Helm installation. This flow aligns with the GCP Terraform example in the installer and covers:- GKE cluster
- Cloud SQL for PostgreSQL
- GCS buckets for data and logs
- Artifact Registry for crew image builds
- Cluster add-ons required by the platform
Prerequisites
- Terraform
>= 1.13.4 gcloudCLI installed and authenticatedgke-gcloud-auth-plugininstalled forkubectlaccesskubectland Helm installed- A GCP project with billing enabled and permissions to create required infrastructure resources
Step 1: Authenticate and Enable APIs
Step 2: Configure Terraform State
From yourcrewai-installer checkout, open terraform/examples/gcp/main.tf.
The example uses a GCS backend for remote state:
- Create the state bucket before running
terraform init. - For temporary testing only, you can comment out the backend block and use local state.
Step 3: Configure Variables
project_idregiongcs_data_bucket_name(globally unique)gcs_logs_bucket_name(globally unique)
Step 4: Apply Infrastructure
kubectl using Terraform output:
Step 5: Map Terraform Outputs to Helm Values
Use Terraform outputs to build yourmy-values.yaml:
database_ip->envVars.DB_HOSTregistry_uri->envVars.CREW_IMAGE_REGISTRY_OVERRIDEgcs_data_bucket-> object storage bucket setting used in your deployment
Troubleshooting Notes
- If
terraform initfails, verify backend bucket settings and project access. - If
kubectlcannot connect to the cluster API, confirm your current source IP is authorized. - If image pushes fail during crew builds, validate
envVars.CREW_IMAGE_REGISTRY_OVERRIDEpoints to a writable Artifact Registry path.
