To do the following operations, first have Nix installed, and then run nix-shell
.
- Download service account key, save it as account.json
- Run
terraform apply
Run TERM=xterm ssh -i SECRET_private_key root@$(terraform output ip)
Run terraform output ip
In the host, run the following: journalctl -u haproxy
In the host, run the following: systemctl -t service
-
Deployer environment all the tools needed to deploy the system in our case terraform defined in shell.nix
-
Infrastructure all the resources rented from GCP compute instances, network addresses etc. defined in *.tf
-
Target environment all the software we run like spark, impala, etc. defined by templates/*.nix