-
Notifications
You must be signed in to change notification settings - Fork 229
/
Copy pathvariables.tf
76 lines (62 loc) · 1.64 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
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
70
71
72
73
74
75
76
variable "environment" {
type = string
description = "the env type"
default = "staging"
}
variable "storage_disk" {
type = number
description = "the storage disk size of os"
default = 80
}
variable "is_delete" {
type = bool
description = "the default behavior to os disk upon vm termination"
default = true
}
variable "allowed_locations" {
type = list(string)
description = "list of allowed locations"
default = [ "West Europe", "North Europe" , "East US" ]
}
variable "resource_tags" {
type = map(string)
description = "tags to apply to the resources"
default = {
"environment" = "staging"
"managed_by" = "terraform"
"department" = "devops"
}
}
# Tuple type
variable "network_config" {
type = tuple([string, string, number])
description = "Network configuration (VNET address, subnet address, subnet mask)"
default = ["10.0.0.0/16", "10.0.2.0", 24]
}
variable "allowed_vm_sizes" {
type = list(string)
description = "Allowed VM sizes"
default = ["Standard_DS1_v2", "Standard_DS2_v2", "Standard_DS3_v2"]
}
# Object type
variable "vm_config" {
type = object({
size = string
publisher = string
offer = string
sku = string
version = string
})
description = "Virtual machine configuration"
default = {
size = "Standard_DS1_v2"
publisher = "Canonical"
offer = "0001-com-ubuntu-server-jammy"
sku = "22_04-lts"
version = "latest"
}
}
variable "storage_account_name" {
type = set(string)
default = [ "techtutorials11", "techtutorials12" ]
}