Skip to content

docs: document Terraform-managed infrastructure - #26

Merged
TechnicPotato merged 1 commit into
mainfrom
docs-terraform
Nov 16, 2026
Merged

TechnicPotato merged 1 commit into
mainfrom
docs-terraform

Conversation

@TechnicPotato

@TechnicPotato TechnicPotato commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

Updates docs/deploy.md now that every Google Cloud resource is managed by Terraform (2h wrap-up). This completes Phase 2.

Changes

  • New "Infrastructure (Terraform)" section: what each file in infra/ defines, who owns what (Terraform owns the service's settings, CI owns the image), how to make a change and read a plan, why apply is manual, and the safeguards in place.
  • One-time setup trimmed to the steps Terraform can't do: the state bucket, local gcloud setup, GitHub settings and the budget alert. The old gcloud commands for APIs, the registry, service accounts, IAM and WIF are removed; they had already drifted (they enabled 3 of the 4 APIs Terraform manages).
  • Check lists: Terraform added alongside Test and Docker.
  • Cost controls: now its own section, including the image cleanup policy (dry-run, configured in artifact_registry.tf).
  • Removed the outdated "set up by hand" status note.

Decisions recorded

  • Terraform is applied manually from an up-to-date main after merge. Applying from CI would need near-owner access, which is risky when workflows in a public repo control that identity.
  • Planned: plan in CI on PRs with a read-only identity, and an approval-gated apply after merge with an identity scoped to one environment.

Test plan

  • Preview on GitHub: tables render and the anchor links (#infrastructure-terraform, #cost-controls) work
  • CI: Test, Docker and Terraform pass

@TechnicPotato
TechnicPotato merged commit cb607db into main Nov 16, 2026
4 checks passed
@TechnicPotato
TechnicPotato deleted the docs-terraform branch November 16, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant