Skip to content

Instantly share code, notes, and snippets.

@pnettto
Created February 26, 2026 20:25
Show Gist options
  • Select an option

  • Save pnettto/9902fbe87a0a2159fbe2dc0b4373489f to your computer and use it in GitHub Desktop.

Select an option

Save pnettto/9902fbe87a0a2159fbe2dc0b4373489f to your computer and use it in GitHub Desktop.
Deploy Langfuse on GCP with Terraform
terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "~> 6.0"
}
}
}
provider "google" {
project = "my-project"
region = "europe-west3"
}
module "langfuse" {
source = "github.com/langfuse/langfuse-terraform-gcp?ref=0.3.3"
domain = "langfuse.pnetto.com"
# Optional use a different name for your installation
# e.g. when using the module multiple times on the same GCP project
name = "langfuse"
# Optional: Configure the VPC
subnetwork_cidr = "10.0.0.0/16"
# Optional: Configure the Langfuse Helm chart version
langfuse_chart_version = "1.5.14"
}
provider "kubernetes" {
host = module.langfuse.cluster_host
cluster_ca_certificate = module.langfuse.cluster_ca_certificate
token = module.langfuse.cluster_token
}
provider "helm" {
kubernetes {
host = module.langfuse.cluster_host
cluster_ca_certificate = module.langfuse.cluster_ca_certificate
token = module.langfuse.cluster_token
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment