Files
Infrastructure/terraform/variables.tf
T

51 lines
1.3 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
}
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. cx22 gives 2 vCPU and 4 GB, the floor for a control plane."
type = string
default = "cx22"
}
variable "server_image" {
description = "Hetzner image for the base system."
type = string
default = "ubuntu-24.04"
}
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
}
variable "cloudflare_zone_id" {
description = "Zone ID of the domain in Cloudflare."
type = string
}