Some personal terraform files for my infra and lab environment.
  • HCL 97.9%
  • Makefile 1.6%
  • Shell 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-23 08:12:23 +03:00
org-buetow-base change buetow.cloud to cool.buetow.org zone 2024-03-12 20:36:35 +02:00
org-buetow-bastion .PHONYing them 2025-04-05 08:28:38 +03:00
org-buetow-ecs more migrated to k3s 2025-08-08 21:59:51 +03:00
org-buetow-eks .PHONYing them 2025-04-05 08:28:38 +03:00
org-buetow-elb refactor to use generic zone TLS cert arn 2023-12-31 18:23:55 +02:00
s3-org-buetow-backup add permissions 2026-07-23 08:12:23 +03:00
s3-org-buetow-tfstate initial commit 2023-08-27 12:16:18 +03:00
.gitignore initial commit 2023-08-27 12:16:18 +03:00
LICENSE Initial commit 2023-08-27 09:15:10 +00:00
Makefile update 2025-08-07 17:08:09 +03:00
README.md change buetow.cloud to cool.buetow.org zone 2024-03-12 20:36:35 +02:00

Terraform

TODO's

  • Input variables which services (ECS) to start.
  • Cloudwatch monitoring with E-Mail alert of the services.

Manual steps

Create fluxdb_password

Go to AWS Secrets manager manually and create it!

Domain Domain TLS certificate

Create DNS zone and TLS certificate in AWS manually. E.g. create cool.buetow.org zone and a TLS certificate for cool.buetow.org,*.cool.buetow.org. Add the Certificate ARN to the org-buetow-base's output as zone_certificate_arn.

Create base environment

Then, create VPC, subnets and EFS in org-buetow-base.

Use the bastion to set up some EFS subdirs

Then, create subdirectories in EFS, using org-buetow-bastion. E.g., have something like this created:

[paul@earth]~/git/terraform/org-buetow-bastion% ssh ec2-user@bastion.aws.buetow.org find /mnt
/mnt
/mnt/efs
/mnt/efs/ec2
/mnt/efs/ec2/nextcloud
/mnt/efs/ecs
/mnt/efs/ecs/anki-sync-server
/mnt/efs/ecs/vaultwarden
/mnt/efs/ecs/wallabag
/mnt/efs/ecs/wallabag/data/db
/mnt/efs/ecs/wallabag/data/assets
/mnt/efs/ecs/audiobookshelf

Also, manually activate daily EFS backup via AWS console.

Set up Application loadbalancer

In org-buetow-elb

Now set up Fargate/ECS

In org-buetow-ecs