-
Notifications
You must be signed in to change notification settings - Fork 135
/
variables.tf
147 lines (123 loc) · 3.44 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
#
# General setup of the Google Cloud Provider
#
variable "project" {
type = string
description = "The name of the Google Cloud Project in which resources will live"
}
variable "region" {
type = string
description = "The name of the Google Cloud region"
default = "us-central1"
}
variable "zone" {
type = string
description = "The name of the Google Cloud zone"
default = "us-central1-a"
}
#
# Indexer-specific parameters
#
variable "indexer" {
type = string
description = "A unique name for the indexer"
}
variable "default_machine_type" {
type = string
default = "n1-standard-4"
description = "The type of machine to use for kubernetes nodes"
}
variable "machine_type" {
type = string
default = "n1-standard-8"
description = "The type of machine to use for kubernetes nodes"
}
variable "preemptible" {
default = false
description = "Whether to use preemptible machines for kubernetes nodes"
}
variable "secure_boot" {
default = false
description = "Whether to enable secure boot for kubernetes nodes"
}
variable "release_channel" {
type = string
default = "UNSPECIFIED"
description = "The release channel of the Kubernetes cluster"
}
variable "image_type" {
type = string
default = "COS"
description = "The image type to use for kubernetes nodes"
}
variable "database_tier" {
type = string
default = "db-custom-4-4096"
description = "The type of machine to use for the database"
}
variable "database_password" {
type = string
description = "The database password"
}
variable "indexer_mnemonic" {
type = string
description = "Mnemonic for the indexer's Ethereum private key"
}
variable "indexer_address" {
type = string
description = "The indexer's (not the operator's) Ethereum address"
}
variable "ethereum_chain_name" {
type = string
description = "Name of the Ethereum network (mainnet for mainnet, rinkeby for testnet)"
}
variable "ethereum_chain_id" {
type = number
description = "Numeric chain ID of the Ethereum network (1 for mainnet, 4 for testnet)"
}
variable "ethereum_provider" {
type = string
description = "Ethereum node or provider URL"
}
variable "free_query_auth_token" {
type = string
description = "Auth token that can be used to send free queries to the indexer"
default = ""
}
variable "network_subgraph_endpoint" {
type = string
description = "An endpoint that serves the network subgraph deployment"
default = ""
}
variable "network_subgraph_deployment" {
type = string
description = "Network subgraph deployment to index locally"
default = ""
}
variable "sizes" {
type = object({
query_pool = number
index_pool = number
default_pool = number
})
default = {
query_pool = 1
index_pool = 1
default_pool = 5
}
description = "The number of machines to put into each k8s node pool"
}
variable "prometheus_disk_size" {
type = number
default = 256
description = "The size of the disk that stores monitoring data (in GB)"
}
# Scalar
variable "scalar_collect_receipts_endpoint" {
type = string
description = "Client endpoint for collecting allocation-based receipts in exchange for a query fee voucher"
}
variable "scalar_client_signer_address" {
type = string
description = "Client signer address for allocation-based receipts"
}