forked from DNXLabs/terraform-aws-eks-cloudwatch-logs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelm.tf
43 lines (36 loc) · 841 Bytes
/
helm.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
resource "helm_release" "cloudwatch_logs" {
depends_on = [var.mod_dependency, kubernetes_namespace.cloudwatch_logs]
count = var.enabled ? 1 : 0
name = var.helm_chart_name
chart = var.helm_chart_release_name
repository = var.helm_chart_repo
version = var.helm_chart_version
namespace = var.namespace
set {
name = "clusterName"
value = var.cluster_name
}
set {
name = "serviceAccount.name"
value = var.service_account_name
}
set {
name = "cloudWatch.region"
value = var.region
}
set {
name = "firehose.enabled"
value = var.firehose_enabled
}
set {
name = "kinesis.enabled"
value = var.kinesis_enabled
}
set {
name = "elasticsearch.enabled"
value = var.elasticsearch_enabled
}
values = [
yamlencode(var.settings)
]
}