You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Terraform configurations to each generated cookiecutter project that provision the required cloud resources (serverless function + database). This gives users a one-command path from generated project to deployed API. Each cloud variant includes a terraform/ directory with the necessary resources, variables, and outputs. A shared pattern keeps the Terraform structure consistent across clouds.
Category:infrastructure, terraform
Acceptance Criteria
Each generated project includes a terraform/ directory with:
main.tf — Provider config and resource definitions
Summary
Add Terraform configurations to each generated cookiecutter project that provision the required cloud resources (serverless function + database). This gives users a one-command path from generated project to deployed API. Each cloud variant includes a
terraform/directory with the necessary resources, variables, and outputs. A shared pattern keeps the Terraform structure consistent across clouds.Category:
infrastructure,terraformAcceptance Criteria
terraform/directory with:main.tf— Provider config and resource definitionsvariables.tf— Input variables (region, project name, etc.)outputs.tf— Endpoint URL, database connection infoterraform.tfvars.example— Example variable valuesterraform validate) in CI for each cloud variantterraform/documents theterraform init → plan → applyworkflow.gitignorein terraform dir excludes.terraform/,*.tfstate,*.tfstate.backup,*.tfvars(but not.tfvars.example)Implementation Notes
Template Structure
Each generated project gets:
The
terraform/directory contents are cloud-specific, controlled by Jinja2 conditionals in the template.Azure Resources (
main.tf)GCP Resources (
main.tf)google_cloudfunctions2_function google_firestore_database google_service_account + google_project_iam_member google_storage_bucket (for function source)AWS Resources (
main.tf)CI Validation
Add a step to each build pipeline that runs
terraform validate(but notplanorapply):Note: AWS Terraform is dependent on AWS Lambda template work (#49-#52).