You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module is a pre-release version and its interface may change. Please review the changelog between each release and create a GitHub issue for any problems or feature requests.
This repository contains a Terraform module for deploying Langfuse - the open-source LLM observability platform - on Azure.
This module aims to provide a production-ready, secure, and scalable deployment using managed services whenever possible.
Usage
Set up the module with the settings that suit your needs. A minimal installation requires a domain which is under your control and a resource_group_name. Configure the kubernetes and helm providers to connect to the AKS cluster.
module"langfuse" {
source="github.com/langfuse/langfuse-terraform-azure?ref=0.1.2"domain="langfuse.example.com"location="westeurope"# Optional: defaults to westeurope# Optional use a different name for your installation# e.g. when using the module multiple times on the same Azure subscriptionname="langfuse"# Optional: Configure the Virtual Networkvirtual_network_address_prefix="10.224.0.0/12"aks_subnet_address_prefix="10.224.0.0/16"app_gateway_subnet_address_prefix="10.225.0.0/16"db_subnet_address_prefix="10.226.0.0/24"redis_subnet_address_prefix="10.226.1.0/24"storage_subnet_address_prefix="10.226.2.0/24"# Optional: Configure the Kubernetes clusterkubernetes_version="1.32"aks_service_cidr="192.168.0.0/20"aks_dns_service_ip="192.168.0.10"node_pool_vm_size="Standard_D8s_v6"node_pool_min_count=2node_pool_max_count=10# Optional: Configure the database instancespostgres_instance_count=2postgres_ha_mode="SameZone"postgres_sku_name="GP_Standard_D2s_v3"postgres_storage_mb=32768# Optional: Configure the cacheredis_sku_name="Basic"redis_family="C"redis_capacity=1# Optional: Configure Application Gatewayapp_gateway_capacity=1# Optional: Security featuresuse_encryption_key=falseuse_ddos_protection=true# Optional: Configure Langfuse Helm chart versionlangfuse_helm_chart_version="1.2.15"
}
provider"kubernetes" {
host=module.langfuse.aks_cluster_hostclient_certificate=base64decode(module.langfuse.aks_cluster_client_certificate)
client_key=base64decode(module.langfuse.aks_cluster_client_key)
cluster_ca_certificate=base64decode(module.langfuse.aks_cluster_ca_certificate)
}
provider"helm" {
kubernetes {
host=module.langfuse.aks_cluster_hostclient_certificate=base64decode(module.langfuse.aks_cluster_client_certificate)
client_key=base64decode(module.langfuse.aks_cluster_client_key)
cluster_ca_certificate=base64decode(module.langfuse.aks_cluster_ca_certificate)
}
}