Files
Infrastructure/terraform/variables.tf
T

54 lines
1.4 KiB
Terraform

# Inputs: the server, its SSH access, and the domain.
# Nothing secret belongs here; secrets come from the environment or tfvars.
#
# server_host is gone: Terraform now creates the server, so its IP is an output
# rather than an input.
variable "ssh_user" {
description = "SSH user Terraform logs in as."
type = string
default = "root"
}
variable "ssh_private_key_path" {
description = "Path to the private key on this machine."
type = string
default = "~/.ssh/cv_infra"
}
variable "ssh_public_key_path" {
description = "Path to the matching public key, installed at server creation."
type = string
default = "~/.ssh/cv_infra.pub"
}
variable "server_type" {
description = "Hetzner server type, e.g. cpx32 (4 vCPU, 8 GB)."
type = string
default = "cpx32"
}
variable "server_image" {
description = "Hetzner image for the base system. Hetzner names Debian images by major version only."
type = string
default = "debian-13"
}
variable "server_location" {
description = "Hetzner location, e.g. nbg1, fsn1, hel1."
type = string
default = "nbg1"
}
variable "domain" {
description = "Apex domain served by the site, e.g. noelsabia.dev."
type = string
default = "noelsabia.dev"
}
variable "cloudflare_zone_id" {
description = "Zone ID of the domain in Cloudflare."
type = string
default = "e8dcd36819c27ef0b77fe4babbe57e21"
}