What's Changed
-
Add server hostname validator by @leandroh in #120
Example:
resource "latitudesh_server" "server" { billing = "monthly" project = "proj_..." hostname = "terraform_hostname" # <- invalid hostname site = "SAO2" plan = "c2-small-x86" operating_system = "ubuntu_24_04_x64_lts" }
Run:
terraform plan
Expected error:
│ Error: Invalid Attribute Value Match │ │ with latitudesh_server.node_server, │ on node.tf line 3, in resource "latitudesh_server" "node_server": │ 3: hostname = "terraform_hostname" │ │ Attribute hostname must contain only letters, digits, hyphens (-), and dots (.). Cannot start or end with a hyphen or dot; │ underscores (_) are not allowed, got: terraform_hostname
-
Add SSH key data source by @leandroh in #121
Example:
# Lookup by ID: data "latitudesh_ssh_key" "by_id" { id = "ssh_..." } output "ssh_public_key" { value = data.latitudesh_ssh_key.by_id.public_key }
Full Changelog: v2.4.1...v2.5.0