Add example GCP deployment with terraform - #108
Draft
lava wants to merge 1 commit into
Draft
Conversation
Contributor
|
Tip Please add a changelog entry for this PR by clicking one of the links below. The changelog entry will be pre-filled with information from this PR. You can edit the title and description as needed before committing. You can also add a changelog entry manually by running
This comment is automatically updated when the PR is modified. |
There was a problem hiding this comment.
Pull Request Overview
A complete example for deploying the Tenzir platform on GCP using Terraform.
- Introduces a bootstrap module to set up networking, a GKE cluster, and an Artifact Registry.
- Defines Kubernetes resources (Deployments, Services, PVCs) for Postgres, platform, gateway, and app.
- Configures IAP protection, managed certificates, ingress rules, and exposes outputs.
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| examples/terraform/gcp/terraform.tfvars | Example variable assignments for a GCP deployment |
| examples/terraform/gcp/inputs.tf | Definitions for input variables with descriptions and flags |
| examples/terraform/gcp/outputs.tf | Top-level Terraform outputs for service & deployment names |
| examples/terraform/gcp/modules/bootstrap/cluster.tf | Bootstrap resources: VPC, subnetwork, GKE cluster, registry |
| examples/terraform/gcp/modules/bootstrap/outputs.tf | Outputs from the bootstrap module (IDs, endpoints, registry) |
| examples/terraform/gcp/kubernetes.tf | Kubernetes provider setup and secret for platform credentials |
| examples/terraform/gcp/kubernetes_postgres.tf | Postgres persistent volumes, deployment, and service |
| examples/terraform/gcp/kubernetes_platform.tf | Platform deployment, service, and backend config |
| examples/terraform/gcp/kubernetes_gateway.tf | Websocket gateway deployment, service, and backend config |
| examples/terraform/gcp/kubernetes_app.tf | App deployment, service, and backend config |
| examples/terraform/gcp/iap_custom_oauth_client.tf | IAP brand, OAuth client, and secret setup |
| examples/terraform/gcp/iap.tf | IAP ingress, managed certificates, and firewall rules |
| examples/terraform/gcp/data.tf | Data sources for GKE cluster and client configuration |
| examples/terraform/gcp/README.md | Instructions for performing a two-step Terraform deployment |
Comments suppressed due to low confidence (1)
examples/terraform/gcp/iap.tf:3
- The regex string in
replace()includes literal slashes and delimiters; Terraform expects a plain regex (e.g.,"^(https?|wss?)://"), so adjust the pattern to correctly strip the protocol prefix.
tenzir_platform_domain_without_protocol = replace(var.tenzir_platform_domain, "/^(https?|wss?):\\/\\//", "")
tenzir-github-app Bot
pushed a commit
that referenced
this pull request
Mar 25, 2026
* Add organizations, workspaces, and invitations API endpoints with correspondig CLI commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.