aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/yandex/server/variables.tf
blob: a3869759f1d887a338cb72a95e73f6055d45b3d3 (plain) (blame)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
variable "zone" {
  type = string

  # The full list is at https://yandex.cloud/ru/docs/overview/concepts/geo-scope
}
variable "platform" {
  type    = string
  default = "standard-v2"
  # ^^^ The least common denominator.

  # The full list is at https://yandex.cloud/ru/docs/compute/concepts/vm-platforms
  # Please notice that some platforms are unavailable in certain zones.
}

variable "name" {
  type = string
}
variable "image" {
  type = string

  # Debian 11
  #default = "fd8fccvfosff76l4g9cu"
  # Debian 12
  #default = "fd8k2ecv2i5bmiblro64"
  # Debian 13
  #default = "fd8tps4kduh4m28n889n"
  # Ubuntu 22.04
  #default = "fd8oik3g61qm14kcklca"
  # Ubuntu 24.04
  default = "fd8cc75vi959cul95ra1"
  # Ubuntu 26.04
  #default = "fd8h10u4sm2tg8cc7knq"

  # The full list is at https://cloud.yandex.com/en/marketplace?categories=os
}
variable "subnet_id" {
  type = string
}
variable "ip_address" {
  type = string
}

variable "user" {
  type = string
}
variable "ssh_keys" {
  type = list(string)
}
variable "ssh_port" {
  type    = string
  default = "22"
}

variable "cores" {
  type    = number
  default = 2
}
variable "core_fraction" {
  type    = number
  default = 100
}
variable "memory" {
  type    = number
  default = 2
}
variable "disk_size" {
  type    = number
  default = 10
}