- Sreverless hosting on Cloud Run
- Secure data persistance with Cloud SQL and VPC network
- Google Cloud account
- gcloud CLI installed
- Terraform installed
-
Clone the repository and move directories
git clone https://github.com/sotazum/langfuse-terraform.git cd terraform/google/environments/dev
-
Set your own variables on
terraform.tfvars
- Replace the value surrounded by
< >
- Replace the value surrounded by
-
Terraform init and apply
terraform init terraform apply
-
Migrate Terraform state to GCS
terraform init -migrate-state
- Then generate
backend.tf
and have Terraform state managed by a GCS bucket
- Then generate
-
Access to Langfuse
- Check your Cloud Run URL on Google Cloud Console (default:
https://langfuse-<your-project-number>.<your-region>.run.app
)
- Check your Cloud Run URL on Google Cloud Console (default: