-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
116 lines (104 loc) · 3.13 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
110
111
112
113
114
115
116
variable "digitalocean_token" {
description = "DigitalOcean token"
type = string
validation {
condition = length(var.digitalocean_token) > 0
error_message = "The digitalocean_token must be provided."
}
}
variable "presentation_name" {
description = "Name of the presentation droplet"
type = string
validation {
condition = length(var.presentation_name) > 0 && length(var.presentation_name) <= 20
error_message = "The presentation_name must be between 1 and 20 characters."
}
}
variable "presentation_region" {
description = "Region for the presentation droplet"
type = string
validation {
condition = var.presentation_region != ""
error_message = "The presentation_region must be provided."
}
}
variable "presentation_size" {
description = "Size of the presentation droplet"
type = string
validation {
condition = var.presentation_size != ""
error_message = "The presentation_size must be provided."
}
}
variable "presentation_image" {
description = "Image for the presentation droplet"
type = string
validation {
condition = var.presentation_image != ""
error_message = "The presentation_image must be provided."
}
}
variable "application_name" {
description = "Name of the application droplet"
type = string
validation {
condition = length(var.application_name) > 0 && length(var.application_name) <= 20
error_message = "The application_name must be between 1 and 20 characters."
}
}
variable "application_region" {
description = "Region for the application droplet"
type = string
validation {
condition = var.application_region != ""
error_message = "The application_region must be provided."
}
}
variable "application_size" {
description = "Size of the application droplet"
type = string
validation {
condition = var.application_size != ""
error_message = "The application_size must be provided."
}
}
variable "application_image" {
description = "Image for the application droplet"
type = string
validation {
condition = var.application_image != ""
error_message = "The application_image must be provided."
}
}
variable "database_name" {
description = "Name of the database"
type = string
validation {
condition = length(var.database_name) > 0 && length(var.database_name) <= 20
error_message = "The database_name must be between 1 and 20 characters."
}
}
variable "database_region" {
description = "Region where the database is located"
type = string
validation {
condition = var.database_region != ""
error_message = "The database_region must be provided."
}
}
variable "database_size" {
description = "Size of the database"
type = string
validation {
condition = var.database_size != ""
error_message = "The database_size must be provided."
}
}
variable "database_image" {
description = "Image for the database"
type = string
validation {
condition = var.database_image != ""
error_message = "The database_image must be provided."
}
}