54 lines
1.0 KiB
HCL
54 lines
1.0 KiB
HCL
terraform {
|
|
required_providers {
|
|
hcloud = {
|
|
source = "hetznercloud/hcloud"
|
|
}
|
|
}
|
|
required_version = ">= 0.13"
|
|
}
|
|
|
|
variable "hcloud_token" {
|
|
sensitive = true
|
|
}
|
|
|
|
variable "hcloud_ssh_key_name" {
|
|
description = "Nombre de la clave SSH en Hetzner"
|
|
type = string
|
|
default = "default-ssh-key"
|
|
}
|
|
|
|
variable "hcloud_ssh_key_file_path" {
|
|
description = "Ruta al archivo de clave SSH pública"
|
|
type = string
|
|
default = "~/.ssh/id_rsa.pub"
|
|
}
|
|
|
|
variable "hcloud_server_name" {
|
|
description = "Server Name"
|
|
type = string
|
|
default = "app"
|
|
}
|
|
|
|
variable "hcloud_server_image" {
|
|
description = "Image Name"
|
|
type = string
|
|
default = "ubuntu-24.04"
|
|
}
|
|
|
|
variable "hcloud_server_type" {
|
|
description = "Server Type"
|
|
type = string
|
|
default = "cx23"
|
|
}
|
|
|
|
variable "hcloud_volume_name" {
|
|
description = "Server Volume Name"
|
|
type = string
|
|
default = "web_volume"
|
|
}
|
|
|
|
variable "hcloud_volume_size" {
|
|
description = "Server Volume Name"
|
|
type = number
|
|
default = 10
|
|
} |