WireGuard and Unbound setup with Packer and Terraform / OpenTofu ready for deployment in Hetzner Cloud.
-
Copy
./packer/packer.auto.pkrvars.hcl.samplefile to./packer/packer.auto.pkrvars.hcland fill it with the appropriate values. -
Build the server image with Packer.
cd ./packer/
packer init ./
packer build -only=hcloud.main ./-
Copy
./terraform/terraform.tfvars.samplefile to./terraform/terraform.tfvarsand fill it with the appropriate values. -
Deploy the server image with Terraform.
cd ./terraform/
terraform init
terraform apply