# terraform — repo context

> Curated overview for code_search. Source: `direqt-search/terraform` (GitHub). Infrastructure as Code.

## Purpose
**Terraform IaC** for the Direqt Search GCP infrastructure. Manages Cloud
Scheduler jobs, Cloud Tasks queues, DNS, BigQuery analytics, Auth0 branding, and
Cloud Run service config.

## What it manages (`*.tf` at repo root)
- `cloud_run_jobs.tf`, `cloud-run/` — Cloud Run services (api, search, index, crawl)
- `scheduler.tf` — Cloud Scheduler cron jobs · `tasks.tf` — Cloud Tasks queues
- `pubsub.tf` — Pub/Sub · `bigquery.tf` — search-event analytics tables
- `dns.tf` — private DNS for internal service discovery
- `auth0.tf` + `auth0/` — Auth0 tenant branding · `stripe/` — Stripe config
- `iam.tf`, `storage.tf`, `vpc.tf`, `monitoring.tf`, `apis.tf`, `variables.tf`, `versions.tf`
- `environments/`, `backend-{dev,production}.hcl` — per-env state isolation

## Environments
- **production**: GCP project `direqt-search-com`, region `us-central1` (Cloud Run: api, search, index, crawl)
- **development**: GCP project `dev-direqt-search-com` (focused on BigQuery analytics), separate state

## Tech
Terraform (HCL) · GCP provider · Auth0 provider · Stripe · Makefile + npm scripts (`plan`, `apply`, …). No application code.
