58 lines
1.2 KiB
HCL
58 lines
1.2 KiB
HCL
variable "hcloud_token" {
|
|
description = "Hetzner Cloud API token"
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "server_name" {
|
|
description = "Server hostname"
|
|
type = string
|
|
default = "clawdbot"
|
|
}
|
|
|
|
variable "server_type" {
|
|
description = "Hetzner server type (cx22 = 2 vCPU, 4GB RAM)"
|
|
type = string
|
|
default = "cx22"
|
|
}
|
|
|
|
variable "image" {
|
|
description = "OS image"
|
|
type = string
|
|
default = "ubuntu-24.04"
|
|
}
|
|
|
|
variable "location" {
|
|
description = "Hetzner datacenter"
|
|
type = string
|
|
default = "nbg1" # Nuremberg, DE
|
|
}
|
|
|
|
variable "ssh_public_key" {
|
|
description = "SSH public key for access"
|
|
type = string
|
|
}
|
|
|
|
variable "ssh_keys" {
|
|
description = "Additional SSH key IDs"
|
|
type = list(string)
|
|
default = []
|
|
}
|
|
|
|
variable "username" {
|
|
description = "Non-root user to create"
|
|
type = string
|
|
default = "clawdbot"
|
|
}
|
|
|
|
variable "allowed_ssh_ips" {
|
|
description = "IPs allowed to SSH (use your static IP or VPN range)"
|
|
type = list(string)
|
|
default = [] # Empty = SSH only via Tailscale if enable
|
|
}
|
|
|
|
variable "environment" {
|
|
description = "Environment label"
|
|
type = string
|
|
default = "production"
|
|
} |