-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
109 lines (97 loc) · 3.02 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
variable "solution_name" {
type = string
description = "Name of the solution."
}
variable "environment" {
type = string
description = "Application environment type."
default = "Staging"
validation {
condition = contains(["Staging", "Production"], var.environment)
error_message = "Invalid value. Expected 'Staging' or 'Production'."
}
}
variable "location" {
type = string
description = "Location where resources must be created."
default = "eastus"
}
variable "enable_static_website" {
type = bool
description = "Enables/disables serving a static website hosted in a Storage Account."
default = false
}
variable "enable_application" {
type = bool
description = "Enables/disables serving application(s) using Container Apps to host containers."
default = false
}
variable "static_website_settings" {
type = object({
index_document = string
error_404_document = string
})
description = "Static website settings."
default = {
index_document = "index.html"
error_404_document = "error.html"
}
}
variable "cdn_application_patterns_to_match" {
type = list(string)
description = "The path patterns to redirect to the application gateway."
default = ["/*"]
}
variable "vnet_cidr" {
type = string
description = "The IPv4 CIDR address for the virtual network."
default = "10.0.0.0/16"
}
variable "containers" {
type = list(object({
name = string
image = string
cpu = number
memory = string
port = number
min_replicas = optional(number)
max_replicas = optional(number)
}))
description = "Container instances to be deployed."
default = []
}
variable "database_servers" {
type = list(
object({
name = optional(string)
administrator_login = optional(string)
administrator_login_password = optional(string)
version = optional(string)
databases = optional(
list(object({
name = optional(string)
collation = optional(string)
license_type = optional(string)
maintenance_configuration_name = optional(string)
max_size_gb = optional(number)
sku_name = optional(string)
storage_account_type = optional(string)
transparent_data_encryption_enabled = optional(bool)
})
)
)
})
)
description = "Database servers and instances to deploy."
default = []
}
variable "enable_jump_server" {
type = bool
description = "Enables/disables jump server for establishing a SSH tunnel to access resources in private subnets."
default = false
}
variable "enable_key_vault" {
type = bool
description = "Enables/disables key vault to store sensible data as secret."
default = false
}