How sanjeevmurthy/le-terraform works
This repository is a multi-cloud Terraform practice project whose most complete example is LinkForge, a three-tier URL shortener on GCP. A user submits and manages links through the web UI; the API stores link records and click counts in Firestore, while short-link visits redirect to their targets. The GCP infrastructure, Kubernetes deployment, and documented CI/CD capabilities are shown alongside the Azure and AWS self-managed-cluster examples. Unsampled infrastructure wiring is represented only where the README documents it; source excerpts support the application flow.
Main entry points: linkforge/main.tf GCP root stack · k8s-cluster/main.tf Azure VM cluster · 30-ingress.yaml Ingress routing · main.py Link API
Components 23
LinkForge application
GKE runtime
- Ingress routing
k8s/30-ingress.yaml - Kubernetes workloads
k8s - App pipeline
.github/workflows/gcp-app.yml
GCP infrastructure
- Infra pipeline
.github/workflows/gcp-infra.yml - GCP root stack
GCP/linkforge/main.tf - VPC network
GCP/modules/network/main.tf - GKE cluster
GCP/modules/gke/main.tf - Artifact Registry
GCP/modules/artifact-registry/main.tf - Workload identity
GCP/modules/workload-identity/main.tf - GitHub OIDC
GCP/modules/github-oidc/main.tf
Azure cluster
- Azure VM cluster
Azure/k8s-cluster/main.tf - Kubernetes bootstrap
Azure/modules/k8s-bootstrap/main.tf - Azure VM
Azure/modules/vm/main.tf - Network interface
Azure/modules/nic/main.tf - SSH key
Azure/modules/ssh-key/main.tf - Azure infra workflow
.github/workflows/k8s-cluster-infra-azure.yaml
AWS cluster
- EC2 Kubernetes cluster
AWS/ec2-k8s-cluster/main.tf - EC2 instance module
AWS/modules/ec2-instance/main.tf - AWS infra workflow
.github/workflows/k8s-cluster-infra.yaml
Other components
- Visitor
Connections 20
- Visitor → Ingress routing: visits
README.md - Ingress routing → Web UI: routes web
README.md - Ingress routing → Link API: routes API
README.md - Web UI → Link API: calls API
app/web/app.js - Link API → Firestore: reads and writes
app/api/main.py - App pipeline → Kubernetes workloads: deploys app
README.md - Infra pipeline → GCP root stack: runs Terraform
README.md - Azure infra workflow → Azure VM cluster: runs Terraform
README.md - AWS infra workflow → EC2 Kubernetes cluster: runs Terraform
README.md - GCP root stack → VPC network
- GCP root stack → GKE cluster
- GCP root stack → Artifact Registry
- GCP root stack → Firestore
- GCP root stack → Workload identity
- GCP root stack → GitHub OIDC
- Azure VM cluster → Kubernetes bootstrap
- Azure VM cluster → Azure VM
- Azure VM cluster → Network interface
- Azure VM cluster → SSH key
- EC2 Kubernetes cluster → EC2 instance module