-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.tf
37 lines (30 loc) · 775 Bytes
/
main.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
provider "helm" {
kubernetes {
config_path = "~/.kube/config"
}
}
module "lwac_certs" {
source = "./modules/lwac_certs"
}
resource "helm_release" "admission_controller" {
name = "lacework-admission-controller"
chart = "https://github.com/lacework/helm-charts/raw/main/admission-controller-0.1.9.tgz"
namespace = "lacework"
create_namespace = true
force_update = true
values = [
"${templatefile("${path.module}/values.tftpl", {account = var.account, token = var.int_token})}"
]
set {
name = "webhooks.caBundle"
value = module.lwac_certs.ca_crt
}
set {
name = "certs.serverCertificate"
value = module.lwac_certs.ac_crt
}
set {
name = "certs.serverKey"
value = module.lwac_certs.ac_key
}
}