forked from nebius/nebius-solution-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
43 lines (38 loc) · 1001 Bytes
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# K8s cluster
variable "parent_id" {
description = "Project ID."
type = string
}
variable "subnet_id" {
description = "Subnet ID."
type = string
}
# SSH access
variable "ssh_user_name" {
description = "SSH username."
type = string
default = "ubuntu"
}
variable "ssh_public_key" {
description = "SSH Public Key to access the cluster nodes."
type = object({
key = optional(string),
path = optional(string, "~/.ssh/id_rsa.pub")
})
default = {}
validation {
condition = var.ssh_public_key.key != null || fileexists(var.ssh_public_key.path)
error_message = "SSH Public Key must be set by `key` or file `path` ${var.ssh_public_key.path}"
}
}
# Access By IP
variable "public_ip_allocation_id" {
description = "Id of a manually created public_ip_allocation."
type = string
default = null
}
variable "test_mode" {
description = "Switch between real usage and testing."
type = bool
default = false
}