forked from andreswebs/terraform-aws-eks-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
162 lines (132 loc) · 3.59 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
152
153
154
155
156
157
158
159
160
161
162
variable "oidc_url" {
type = string
description = "OpenID Connect (OIDC) Identity Provider associated with the Kubernetes cluster"
}
variable "oidc_arn" {
type = string
description = "OpenID Connect (OIDC) Identity Provider associated with the Kubernetes cluster"
}
variable "k8s_namespace" {
type = string
description = "Name of the Kubernetes namespace to which resources will be deployed"
}
variable "metrics_server_enabled" {
type = bool
description = "Enable Metrics Server?"
default = true
}
variable "helm_values_metrics_server" {
type = map(string)
default = {}
}
variable "helm_values_prometheus" {
type = map(string)
default = {}
}
variable "helm_values_promtail" {
type = map(string)
default = {}
}
variable "helm_values_loki_distributed" {
type = map(string)
default = {}
}
variable "helm_values_grafana" {
type = map(string)
default = {}
}
variable "helm_values_loki" {
type = map(string)
default = {}
}
variable "loki_mode" {
type = string
description = "Loki mode, must be either `single` or `distributed`"
default = "distributed"
validation {
condition = can(regex("^single|distributed$", var.loki_mode))
error_message = "Must be one of `single` or `distributed`."
}
}
variable "create_loki_storage" {
type = bool
description = "Create S3 bucket for Loki storage?"
default = false
}
variable "create_loki_storage_id_suffix" {
type = bool
description = "Append a random identifier string suffix to the Loki storage S3 bucket name?"
default = false
}
variable "create_loki_storage_kms_key" {
type = bool
description = "Create KMS key?"
default = true
}
variable "loki_storage_s3_bucket_name" {
type = string
description = "Name of S3 bucket used for Loki storage"
default = ""
}
variable "loki_storage_s3_force_destroy" {
type = bool
description = "Force destroy bucket when running `terraform destroy`?"
default = true
}
variable "loki_storage_kms_key_arn" {
type = string
description = "(Optional) ARN of KMS key used to encrypt bucket objects; ignored if `create_kms_key` is set to `true`"
default = null
}
variable "loki_storage_kms_key_deletion_window_in_days" {
type = number
description = "KMS key deletion window in days"
default = 30
}
variable "loki_storage_kms_key_enable_rotation" {
type = bool
description = "Enable KMS key rotation?"
default = true
}
variable "loki_storage_expiration_days" {
type = number
description = "Number of days to retain objects; `0` means never expire"
default = 90
}
variable "loki_k8s_sa_name" {
type = string
description = "Name of the Kubernetes service account for Loki components"
default = "loki"
}
variable "grafana_k8s_sa_name" {
type = string
description = "Name of the Kubernetes service account for Grafana"
default = "grafana"
}
## chart versions
variable "chart_version_metrics_server" {
type = string
description = "Chart version"
default = "3.8.2"
}
variable "chart_version_prometheus" {
type = string
description = "Chart version"
default = "56.0.3"
}
variable "chart_version_promtail" {
type = string
description = "Chart version"
default = "6.3.0"
}
variable "chart_version_loki_distributed" {
type = string
description = "Chart version"
default = "0.78.1"
}
variable "chart_version_loki" {
type = string
description = "Chart version"
default = "3.0.3"
}
## end chart versions