variable "aws_region" {
  description = "AWS region to deploy in"
  type        = string
  default     = "us-east-1"
}

variable "hostname" {
  description = "Fully qualified domain name for the relay server"
  type        = string
  default     = "layover.sh"
}

variable "gandi_api_key" {
  description = "Gandi Personal Access Token for DNS management"
  type        = string
  sensitive   = true
}

variable "certbot_email" {
  description = "Email address for Let's Encrypt certificate notifications"
  type        = string
}

variable "instance_type" {
  description = "EC2 instance type"
  type        = string
  default     = "t3.micro"
}

variable "ssh_public_key_path" {
  description = "Path to SSH public key for EC2 access"
  type        = string
  default     = "~/.ssh/layover-sh.pub"
}

variable "ssh_private_key_path" {
  description = "Path to SSH private key for provisioner access"
  type        = string
  default     = "~/.ssh/layover-sh.pem"
}

variable "ssh_allowed_cidrs" {
  description = "CIDRs allowed to SSH into the instance (restrict to your IP)"
  type        = list(string)
  default     = ["0.0.0.0/0"]
}

variable "binary_path" {
  description = "Path to the locally-built layover binary (Linux amd64 musl)"
  type        = string
  default     = "../target/x86_64-unknown-linux-musl/release/layover"
}
