1
0
Fork 0
server-configuration/README.md

18 lines
580 B
Markdown

# OpenTofu server configuration
This is an experimental configuration for my Hetzner VPS using OpenTofu and Nix.
## How to use
In the `terraform` directory, copy `secret.tfvars.example` to `secret.tfvars` and fill in the values.
To generate a token with Hetzner, go to the project and click `Security -> API Tokens`.
Run `nix develop` to access a shell where OpenTofu is accessible.
## Aliases
The following aliases in the development shell include the secrets file automatically.
- `tofu-plan` - run in `terraform` directory
- `tofu-apply` - run in `terraform` directory