Description
This repository is a Terraform configuration that sets up Google Cloud resources and deploys Dify in a highly available arrangement. It provides the infrastructure as code to run Dify on Google Cloud with serverless hosting, auto-scaling and data persistence. The README says it supports Dify v1.0.0 and later. You clone the repository, initialize Terraform, create an Artifact Registry repository, build and push the Dify container images, then run a Terraform plan and apply. You can choose a specific version of the dify-api image, and the latest version is used if none is given. A Cloud Storage bucket for Terraform state must be created in advance. The README warns not to commit a terraform.tfvars file that holds secrets, and suggests environment variables or Google Secret Manager instead. A cleanup section explains how to tear the environment down, and it notes that some storage and network resources need separate steps.…
Highlights
- Terraform setup for Dify on Google Cloud
- Serverless hosting with auto-scaling
- Data persistence and high availability
- Supports Dify v1.0.0 and later
- Pinned or latest dify-api image version
Ratings & Reviews
No ratings yet
Be the first to rate Dify Google Cloud Terraform.
People also visit

google-cloud-solution-build-deploy-agents
Designs, builds, and deploys AI agents or multi-agent systems on Google Cloud

Sudarshan AI
vague ideas into production-ready cloud infrastructure blueprints in 60 seconds

google-cloud-solution-agentic-ai-data-science-workflow
Designs a tailored multi-product agentic data science architecture on Google
Dify Google Cloud Terraform FAQ
What does this repository do?
It uses Terraform to create the Google Cloud resources for Dify and deploy it in a highly available setup.
What do I need before I start?
A Google Cloud account, Terraform and the gcloud CLI, plus a Cloud Storage bucket for Terraform state that you create in advance.
How do I keep secrets safe?
The README says not to commit terraform.tfvars with sensitive data. Add *.tfvars to .gitignore and use TF_VAR environment variables or Google Secret Manager.
Which Dify version is supported?
The README says Dify v1.0.0 and later is supported.
What are the best Dify Google Cloud Terraform alternatives?
Popular alternatives to Dify Google Cloud Terraform include Llamafarm, Skyflo and Sudarshan AI. See all Dify Google Cloud Terraform alternatives





