Terraform
Documentation
Basic Usage
Create and run infrastructure (virtual machines, DNS etc). Sync state in cloud with terraform login.
terraform plan -var-file=<(sops -d ~/dotfiles/secrets/secret.tfvars.json)
terraform apply -var-file=<(sops -d ~/dotfiles/secrets/secret.tfvars.json) -auto-approve
or decrypt secrets first to *.dec.json (ignored by git but be careful anyway)
sops -d ~/dotfiles/secrets/secrets.tfvars.json > secrets.dec.json
terraform plan --var-file=secrets.dec.json
terraform apply --var-file=secrets.dec.json
Formatting
For manual formatting:
terraform fmt -write -recursive <folder>