Terraform Provider for Latitude.sh
Provision and manage Latitude.sh bare metal infrastructure using Terraform.
Full documentation is available on the Terraform Registry.
Getting Started
Check the latest releases for updates and changelogs.
Note: If you are upgrading from version 1.x to 2.x, please see the Migration Guide.
Installation & Requirements
To get started, make sure you have:
- Terraform >= 1.6
- A Latitude.sh API key
Then add the provider to your terraform block:
terraform {
required_providers {
latitudesh = {
source = "latitudesh/latitudesh"
version = ">= 2.5.0"
}
}
}
Authentication
Export your API key:
export LATITUDESH_AUTH_TOKEN="<your-api-key-here>"
Quick Example
provider "latitudesh" {}
resource "latitudesh_server" "example" {
billing = "monthly"
hostname = "my-server"
plan = "c2-small-x86"
site = "SAO2"
operating_system = "ubuntu_24_04_x64_lts"
project = "proj_..."
ssh_keys = ["ssh_..."]
}
Then run:
terraform init
terraform apply
and type yes to confirm.
Resources
Highlighted resources:
For the complete list of resources and data sources, see the Terraform Registry documentation.
Contributing
We welcome all contributions, from small fixes to major improvements. See CONTRIBUTING.md for more details.