Terraform configurations in this lab manage cloud infrastructure across two providers: DigitalOcean and Google Cloud Platform. All configurations are version-controlled and include automated security scanning via GitHub Actions.
The terraform/digital\_ocean/} directory manages the external-facing web presence for bitsmasher.net.
center}
tabular}{lll}
www.bitsmasher.net & A & Web server host (178.62.60.55) \\
@ & MX & mail.protonmail.ch 10 (ProtonMail routing) \\
@ & TXT & 54F and DMARC policies \\
protonmail.\_domainkey & CNAME & DKIM email verification \\
tabular}
center}
The droplet includes:
Provider authentication uses a DigitalOcean API token managed through pass/direnv integration. The token is passed at runtime, never committed to the repository.
The terraform/google/} directory manages GCP resources for Stash House free-tier operations.
The GCP configuration is intentionally minimal, designed around Google's Always Free Tier limits to maintain zero-cost infrastructure.
All Terraform configurations are automatically scanned by two GitHub Actions workflows:
Additionally, the DigitalOcean directory includes existing README.md} with doctl and pass integration instructions for manual operations.
Terraform configurations are validated through:
State drift detection is recommended as a regular maintenance task — compare terraform state list} output against actual cloud resource inventories quarterly.