Documentation
Terraform Workflows
Use Terraform with SSH provisioners and inventory files to manage LayerOne VPS infrastructure as code.
LayerOne VPS instances are ordered through the client portal. After deployment, manage them with Terraform using SSH providers and external data sources for inventory.
Typical workflow
- Deploy the VPS manually or via your internal ordering automation.
- Record the IPv4 address and root credentials in a secure secret store.
- Use
terraform provisioner "remote-exec"or Ansible afterterraform applycreates DNS records.
We are evaluating a native Terraform provider. Until then, treat the VM as a static resource with lifecycle managed in your state file.