65 lines
1.3 KiB
HCL
65 lines
1.3 KiB
HCL
variable "project_name" {
|
|
description = "Project name"
|
|
type = string
|
|
}
|
|
|
|
variable "environment" {
|
|
description = "Environment name"
|
|
type = string
|
|
}
|
|
|
|
variable "region" {
|
|
description = "DigitalOcean region"
|
|
type = string
|
|
}
|
|
|
|
variable "vpc_uuid" {
|
|
description = "UUID of the VPC"
|
|
type = string
|
|
}
|
|
|
|
variable "vpc_ip_range" {
|
|
description = "IP range of the VPC (CIDR notation)"
|
|
type = string
|
|
}
|
|
|
|
variable "ssh_keys" {
|
|
description = "List of SSH key IDs to add to the droplet"
|
|
type = list(string)
|
|
}
|
|
|
|
variable "droplet_size" {
|
|
description = "Size slug for the droplet"
|
|
type = string
|
|
default = "s-1vcpu-512mb-10gb"
|
|
}
|
|
|
|
variable "droplet_image" {
|
|
description = "Image slug for the droplet"
|
|
type = string
|
|
default = "debian-12-x64"
|
|
}
|
|
|
|
variable "ssh_port" {
|
|
description = "SSH port (non-standard for security)"
|
|
type = number
|
|
default = 49822
|
|
}
|
|
|
|
variable "enable_backups" {
|
|
description = "Enable automated backups"
|
|
type = bool
|
|
default = true
|
|
}
|
|
|
|
variable "tags" {
|
|
description = "Tags to apply to the droplet"
|
|
type = list(string)
|
|
default = []
|
|
}
|
|
|
|
variable "internal_private_key" {
|
|
description = "Private SSH key for accessing internal servers (Forgejo, etc.)"
|
|
type = string
|
|
sensitive = true
|
|
}
|