-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariable.tf
90 lines (77 loc) · 1.75 KB
/
variable.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
variable "namespace" {
type = string
default = "default"
description = "The namespace to deploy the application"
}
variable "redis_enable" {
type = bool
default = false
}
variable "redis_endpoint" {
type = string
default = "127.0.0.1:6379"
}
variable "redis_username" {
type = string
default = ""
}
variable "redis_password" {
type = string
default = ""
}
variable "node_replicas" {
type = number
default = 3
description = "node http server replicas"
}
variable "node_rpc_endpoints" {
type = map(object({
url = string
http_headers = map(string)
http2_disabled = bool
}))
default = {}
description = "rpc endpoints with http headers and http2 options"
}
variable "node_workers" {
type = list(object({
id = string
network = string
worker = string
endpoint = string
parameters = optional(map(string), {})
resources = optional(map(object({
cpu = string
memory = string
})), {})
}))
description = "The workers for the node"
}
variable "node_values" {
type = list(string)
default = []
description = "The extra values for the node"
}
variable "node_register" {
type = bool
default = true
description = "Register the node with the network"
}
variable "node_register_config" {
type = object({
operator = object({
evm_address = string
signature = string
})
server = object({
endpoint = string
global_indexer_endpoint = optional(string, "https://gi.rss3.io/")
access_token = string
})
})
description = "The register config for the node"
}
variable "database_uri" {
type = string
description = "The database uri"
}