Hardcoded for project intentos-dev and region us-central1.
Contents
- FastAPI app with
/healthz - Terraform for enabling APIs, VPC + Serverless VPC Connector, Artifact Registry
- Makefile helpers for build/deploy
Prereqs
gcloudCLI authenticated tointentos-devterraform >= 1.7- Docker
Quick Start
# 1) Infra
cd infra/envs/dev
terraform init
terraform apply -auto-approve
# 2) App (local run)
cd ../../..
python -m venv .venv && source .venv/bin/activate
pip install -r app/requirements.txt
uvicorn app.main:app --host 0.0.0.0 --port 8080
# 3) Build & Deploy to Cloud Run (optional)
make build
make push
make deploy
Note: Creating a brand-new GCP project via Terraform requires
org_idandbilling_accountwhich are not included here. This scaffold assumesintentos-devalready exists. Theenable_apismodule activates required services in that project.