forked from graphprotocol/indexer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecrets.tf
70 lines (66 loc) · 1.41 KB
/
secrets.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
#
# Databases and credentials
#
resource "kubernetes_secret" "postgres-credentials" {
metadata {
name = "postgres-credentials"
}
data = {
host = google_sql_database_instance.graph.first_ip_address
user = google_sql_user.graph.name
password = var.database_password
graph_db = "graph"
indexer_db = "indexer-service"
vector_db = "vector"
}
}
#
# Operator mnemonic, indexer address and more.
#
resource "kubernetes_secret" "indexer" {
metadata {
name = "indexer"
}
data = {
mnemonic = var.indexer_mnemonic
indexer_address = var.indexer_address
free_query_auth_token = var.free_query_auth_token
}
}
#
# Network subgraph configuration
#
resource "kubernetes_secret" "network-subgraph" {
metadata {
name = "network-subgraph"
}
data = {
endpoint = var.network_subgraph_endpoint
deployment = var.network_subgraph_deployment
}
}
#
# Ethereum provider URL
#
resource "kubernetes_secret" "ethereum" {
metadata {
name = "ethereum"
}
data = {
network_name = var.ethereum_chain_name
chain_id = var.ethereum_chain_id
url = var.ethereum_provider
}
}
#
# Scalar configuration
#
resource "kubernetes_secret" "scalar" {
metadata {
name = "scalar"
}
data = {
collect_receipts_endpoint = var.scalar_collect_receipts_endpoint
client_signer_address = var.scalar_client_signer_address
}
}