Ricard Illa dc48207c55 | ||
---|---|---|
.gitignore | ||
LICENSE | ||
README.md | ||
flake.lock | ||
flake.nix | ||
init.sh | ||
main.tf | ||
namecheap.tf | ||
run_terraform |
README.md
terraform
The terraform code for my small personal infrastructure
Backend
I use the pg backend on a PostgreSQL hosted on my NAS. Create the user (named
terraform
) and database (terraform_backend
) for it. The user's password is
managed with pass
.
pass generate pg.monotremata.xyz/terraform
psql --host pg.monotremata.xyz
CREATE DATABASE terraform_backend;
CREATE USER terraform WITH ENCRYPTED PASSWORD '****';
GRANT ALL PRIVILEGES ON DATABASE terraform_backend TO terraform;