Skip to content

Commit 8a13e09

Browse files
committed
chore: add new client
1 parent eade347 commit 8a13e09

1 file changed

Lines changed: 22 additions & 48 deletions

File tree

  • spartan/terraform/deploy-rpc/environments/mainnet

spartan/terraform/deploy-rpc/environments/mainnet/main.tf

Lines changed: 22 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,27 @@ locals {
7171
})
7272
})
7373
}
74+
75+
consumer_secret_names = [
76+
"mainnet-rpc-consumer-client1",
77+
"mainnet-rpc-consumer-client2",
78+
"mainnet-rpc-consumer-client3",
79+
"mainnet-rpc-consumer-client4",
80+
"mainnet-rpc-consumer-client5",
81+
"mainnet-rpc-consumer-client6",
82+
"mainnet-rpc-consumer-client7",
83+
"mainnet-rpc-consumer-client8",
84+
"mainnet-rpc-consumer-client9",
85+
"mainnet-rpc-consumer-client10"
86+
]
87+
88+
consumers = {
89+
for name in local.consumer_secret_names : name => {
90+
username = name
91+
gcp_secret_manager_secret_name = name
92+
rate_limit_minute = 0
93+
}
94+
}
7495
}
7596

7697
module "environment" {
@@ -86,53 +107,6 @@ module "environment" {
86107
RELEASE_PREFIX = "mainnet"
87108
RPCS = local.rpcs
88109
ALLOW_ANONYMOUS = false
89-
CONSUMERS = {
90-
client1 = {
91-
username = "mainnet-rpc-consumer-client1"
92-
gcp_secret_manager_secret_name = "mainnet-rpc-consumer-client1"
93-
rate_limit_minute = 0
94-
}
95-
client2 = {
96-
username = "mainnet-rpc-consumer-client2"
97-
gcp_secret_manager_secret_name = "mainnet-rpc-consumer-client2"
98-
rate_limit_minute = 0
99-
}
100-
client3 = {
101-
username = "mainnet-rpc-consumer-client3"
102-
gcp_secret_manager_secret_name = "mainnet-rpc-consumer-client3"
103-
rate_limit_minute = 0
104-
}
105-
client4 = {
106-
username = "mainnet-rpc-consumer-client4"
107-
gcp_secret_manager_secret_name = "mainnet-rpc-consumer-client4"
108-
rate_limit_minute = 0
109-
}
110-
client5 = {
111-
username = "mainnet-rpc-consumer-client5"
112-
gcp_secret_manager_secret_name = "mainnet-rpc-consumer-client5"
113-
rate_limit_minute = 0
114-
}
115-
client6 = {
116-
username = "mainnet-rpc-consumer-client6"
117-
gcp_secret_manager_secret_name = "mainnet-rpc-consumer-client6"
118-
rate_limit_minute = 0
119-
}
120-
client7 = {
121-
username = "mainnet-rpc-consumer-client7"
122-
gcp_secret_manager_secret_name = "mainnet-rpc-consumer-client7"
123-
rate_limit_minute = 0
124-
}
125-
client8 = {
126-
username = "mainnet-rpc-consumer-client8"
127-
gcp_secret_manager_secret_name = "mainnet-rpc-consumer-client8"
128-
rate_limit_minute = 0
129-
}
130-
client9 = {
131-
username = "mainnet-rpc-consumer-client9"
132-
gcp_secret_manager_secret_name = "mainnet-rpc-consumer-client9"
133-
rate_limit_minute = 0
134-
}
135-
}
136-
110+
CONSUMERS = local.consumers
137111
IRM_METRICS_ENABLED = true
138112
}

0 commit comments

Comments
 (0)