Terraform configuration to create and renew the HTTPS certificate for Ubiquiti's EdgeRouter.
- A public DNS name that resolves to the EdgeRouter - probably pointing to its private IP
- SSH access to the EdgeRouter via its DNS name using a SSH private key in your SSH agent
- The
service gui cert-file
setting pointing at a location where the HTTPS certificate should be written
Apply a staging certificate, using default username/hostname:
terraform apply -var [email protected]
Apply a production certificate, overriding username/hostname:
terraform apply -var-file letsencrypt-prod.tfvars -var [email protected] -var router_username=nhinds -var router_hostname=router.example.com
See variables.tf
for all available settings.