Terraform Infra

Pages 54-56 of the Bitsmasher Lab Operations Manual (62 pages)

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.

DigitalOcean Infrastructure

The terraform/digital\_ocean/} directory manages the external-facing web presence for bitsmasher.net.

Provisioned Resources

Key DNS Records

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}

Configuration Notes

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.

Google Cloud Platform Infrastructure

The terraform/google/} directory manages GCP resources for Stash House free-tier operations.

Resources Managed

The GCP configuration is intentionally minimal, designed around Google's Always Free Tier limits to maintain zero-cost infrastructure.

Security Scanning

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.

Testing

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.