-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
37 lines (31 loc) · 1.48 KB
/
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
variable "os" {
description = "The OS reference name. Available vaules: `ubuntu-18.04`, `ubuntu-20.04`, `ubuntu-22.04`, `ubuntu-24.04`, `debian-10`, `debian-11`, `debian-12`, `amazon2`, `al2023`."
type = string
validation {
condition = contains(["ubuntu-18.04", "ubuntu-20.04", "ubuntu-22.04", "ubuntu-24.04", "debian-10", "debian-11", "debian-12", "amazon2", "al2023"], var.os)
error_message = "Invalid value. Available vaules: ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, debian-10, debian-11, debian-12, amazon2, al2023."
}
}
variable "virtualization_type" {
description = "Keyword to choose what virtualization mode created instances will use. Available values: `paravirtual`*, `hvm`."
type = string
default = "hvm"
validation {
condition = contains(["hvm", "paravirtual"], var.virtualization_type)
error_message = "Invalid value. Available values: paravirtual or hvm."
}
}
variable "architecture" {
description = "The architecture of the image. Available values: `x86_64`*, `arm64`."
type = string
default = "x86_64"
validation {
condition = contains(["x86_64", "arm64"], var.architecture)
error_message = "Invalid value. Available values: x86_64 or arm64."
}
}
variable "allow_eof_ami" {
description = "Ability to use images that are no longer supported and have reached their end of life date. Default value is `false` and we do not suggest changing it."
type = bool
default = false
}