Files
iac/variables.tf
Melchior Reimers 2802827e60
Some checks failed
Deployment / deploy-docker (push) Failing after 9s
uses existing hetzner api key
2026-02-04 19:44:00 +01:00

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_key_name" {
description = "Existing Hetzner SSH key name (must already exist)"
type = 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"
}