-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
46 lines (38 loc) · 856 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
38
39
40
41
42
43
44
45
46
variable "kube_host" {
type = string
}
variable "kube_crt" {
type = string
}
variable "kube_key" {
type = string
}
provider "helm" {
kubernetes {
host = var.kube_host
client_certificate = base64decode(var.kube_crt)
client_key = base64decode(var.kube_key)
insecure = true
}
}
provider "kubernetes" {
host = var.kube_host
client_certificate = base64decode(var.kube_crt)
client_key = base64decode(var.kube_key)
insecure = true
}
variable "config" {
type = object({
client_id = string
token = string
user_id = string
super_user_id = string
})
}
module "name-bot" {
source = "./modules/name-bot"
client_id = var.config.client_id
token = var.config.token
user_id = var.config.user_id
super_user_id = var.config.super_user_id
}