-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
151 lines (128 loc) · 4.22 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
variable "prefix" {
description = "main prefix for tags, which could be your organization name or project name"
type = string
default = "default"
validation {
condition = !contains(["aws", "lambda-console", "elasticbeanstalk", "AWS"], var.prefix)
error_message = "Impossible to use `aws`,`lambda-console`,`elasticbeanstalk`, `AWS` here."
}
}
variable "separator" {
description = "separator for tags, e.g. (`default:custom:mytag`)"
type = string
default = ":"
validation {
condition = !contains(["-"], var.separator)
error_message = "Impossible to use `-` here."
}
}
variable "git_other" {
description = "pre templated tag `default:git:other`. Other for Git"
type = string
default = ""
}
variable "terraform_managed" {
description = "pre templated tag `default:terraform:managed`. Tag resources witch managed by Terraform"
type = string
default = ""
}
variable "terraform_state" {
description = "pre templated tag `default:terraform:state`. Terraform state file location and key name"
type = string
default = ""
}
variable "terraform_other" {
description = "pre templated tag `default:terraform:other`. Other for Terraform"
type = string
default = ""
}
variable "data_pii" {
description = "pre templated tag `default:data:pii`. Resource contains PII data"
type = string
default = ""
}
variable "data_phi" {
description = "pre templated tag `default:data:phi`. Resource contains PHI data"
type = string
default = ""
}
variable "data_pci" {
description = "pre templated tag `default:data:pci`. Resource contains PCI data"
type = string
default = ""
}
variable "data_owner" {
description = "pre templated tag `default:data:owner`. Data Owner"
type = string
default = ""
}
variable "data_classification" {
description = "pre templated tag `default:data:classification`. Data classification (restricted/confidential)"
type = string
default = ""
}
variable "data_other" {
description = "pre templated tag `default:data:other`. Other for Data"
type = string
default = ""
}
variable "environment_name" {
description = "pre templated tag `default:environment:name`. Environment name (production/staging/test)"
type = string
default = ""
}
variable "environment_type" {
description = "pre templated tag `default:environment:type`. Environment type (shared/performance testing)"
type = string
default = ""
}
variable "environment_other" {
description = "pre templated tag `default:environment:other`. Other for Environment"
type = string
default = ""
}
variable "gc_enable" {
description = "pre templated tag `default:garbage-collector:enable`. Enable Garbage Collector for this resource"
type = string
default = ""
}
variable "gc_ttl" {
description = "pre templated tag `default:garbage-collector:time-to-live`. Time to Live for Garbage Collector. Days."
type = string
default = ""
}
variable "gc_other" {
description = "pre templated tag `default:garbage-collector:other`. Other for Garbage Collector"
type = string
default = ""
}
variable "backup_enable" {
description = "pre templated tag `default:backup:enable`. Enable Backup for this resource"
type = string
default = ""
}
variable "backup_frequency" {
description = "pre templated tag `default:backup:frequency`. Backup frequency (daily/weekly/monthly)"
type = string
default = ""
}
variable "backup_other" {
description = "pre templated tag `default:backup:other`. Other for Backup"
type = string
default = ""
}
variable "custom_prefix" {
description = "secondary level prefix for custom tags, which could be added by `custom_strings` and `custom_numbers`"
type = string
default = "custom"
}
variable "custom_strings" {
description = "custom tags, which must be strings. e.g. (`default:custom:mystring = \"mystring\"`)"
type = map(string)
default = {}
}
variable "custom_numbers" {
description = "custom tags, which must be strings. e.g. (`default:custom:mynumber = 5000`)"
type = map(number)
default = {}
}