Deepak Mallubhotla a9f8183309
All checks were successful
Terraform validate and apply / terraform (ubuntu-latest) (push) Successful in 2m13s
Merge pull request 'Purely documentation and typing, let's try' (#2) from dev into master
Reviewed-on: #2
2025-09-18 16:23:41 +00:00
2025-09-18 01:10:57 -05:00
2025-09-09 18:41:49 -05:00
2025-09-04 16:08:12 -05:00
2025-09-10 13:06:13 -05:00
2025-09-09 18:41:49 -05:00
2025-09-04 16:07:30 -05:00
2025-09-04 16:07:30 -05:00
2025-09-09 15:27:42 -05:00
2025-09-18 09:59:37 -05:00
2025-09-18 10:28:01 -05:00
2025-09-18 09:59:37 -05:00
2025-09-18 11:17:46 -05:00
2025-09-09 18:41:49 -05:00
2025-09-09 15:27:42 -05:00
2025-09-18 10:50:04 -05:00

tuffas

hosting hruday.me via terraform


Add dotenv to .envrc after other nix stuff, and store keys in .env, which is fine for a testing project.

Don't add dotenv. Workflow is to just use the dev branch or anything else, then only actually deploy via PR to master. PR to master is a great deployment strategy, no notes.

Currently manages hruday.me and deepakmallubhotla.com, creating buckets which match the domain names. The content of the sites are managed externally, in their own repos which deploy by uploading to the S3 bucket created here.

adding a domain

Not an ideal process, so we should improve.

  1. Acquire domain name, manually atm.
  2. let Cloudflare manage DNS by setting nameservers (following the wizard in cf works with no DNS records required before we get here!) etc., also manual
  3. Add domain name to relevant Gitea variable, should be easy.
  4. Bucket will be created, empty. If you want an easy start you can manually upload to the bucket.
  5. Deploy with whatever method you want, can include a build process or anything else. Follow hruday.me as a guide maybe

Todos

  • better secrets management
  • ci
  • test ci permissions with a real terraform apply (not in ci)
  • can we make a lower-weight runner? ubuntu-latest is heavy and still requires ~1m for providers
  • For new domain should provide a default set of content in the bucket? or does that cost more for the extra creates, for a local project we may not care
Description
terraform static site infrastructure
Readme 76 KiB
Languages
CSS 30.4%
HCL 28.8%
JavaScript 28.4%
Nix 6.9%
HTML 3.5%
Other 2%