-
Notifications
You must be signed in to change notification settings - Fork 0
Terraform Architecture
Terraform is an optional Praxis Pro capability. Selecting it requires an explicit cloud and implies Kubernetes, autoscaling, high availability, edge protection, database resilience, and cloud secrets.
infra/terraform/
README.md
versions.tf
variables.tf
main.tf
outputs.tf
backend.example.hcl
cache.tf # when Redis capability requires managed cache
storage.tf # when object storage is selected
search.tf # when search is selected
pro.terraform.shared contributes lifecycle guidance common to all clouds. Exactly one of pro.terraform.aws, .azure, or .gcp owns provider-specific resources.
| Concern | AWS | Azure | GCP |
|---|---|---|---|
| Provider foundation | AWS provider/network/cluster/registry | AzureRM resource group/network/cluster/registry | Google project/network/cluster/registry |
| Managed database | provider-native PostgreSQL service | provider-native PostgreSQL service | Cloud SQL PostgreSQL |
| Cache/storage/search | conditional provider services/files | conditional provider services/files | conditional provider services/files |
| Secrets | provider secret service contract | provider secret service contract | provider secret service contract |
Exact resources and variables are authoritative in the generated .tf files; the Wiki describes ownership, not a promise of every cloud SKU.
- Configure remote state from
backend.example.hclusing organization-owned credentials. - Run
terraform init, validation, plan, review, and apply through the organization's workflow. - Build/push the generated application image separately.
- Supply Terraform outputs to the Kubernetes deployment/secrets workflow.
- Apply Kubernetes resources separately.
- Run application migrations through an explicit job/process.
Terraform must not silently create credentials, execute migrations, or deploy application manifests. State, IAM policy, cost controls, backup/restore drills, and production review remain operator responsibilities.
Conditional cache/storage/search files are selected from the resolved capability set. Cloud secrets connect Kubernetes secret references to the provider's secret service. Database resilience/disaster recovery choices affect infrastructure configuration, but application transaction and retry semantics remain framework code concerns.
This Wiki is generated from the repository's versioned docs/ source. Update and review the source files; do not rely on hand edits to generated Wiki pages.
- Core-Internals
- Architecture
- Repository-Map
- Code-Architecture
- Generation-Pipeline
- Manifest-System
- UI-Templates
- Testing
- Agent-Guide
- Wiki-Publishing
- Template-Architecture
- Standard-Projects
- Standard-Frontend-Architecture
- Express-Architecture
- Fullstack-Architecture
- Praxis-Pro
- Django-Architecture
- Gin-Architecture
- Capability-Architecture
- Compose-Architecture
- Kubernetes-Architecture
- Terraform-Architecture
- Extending-Generated-Projects
- Generated-Backends