mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
39 lines
1.1 KiB
HCL
39 lines
1.1 KiB
HCL
variable docker_tag {
|
|
type = string
|
|
default = "latest"
|
|
description = "description"
|
|
}
|
|
|
|
locals {
|
|
predefinedNodesConfig = jsondecode(data.aws_s3_object.devnet_xdc_node_config.body)
|
|
envs = { for tuple in regexall("(.*)=(.*)", file(".env")) : tuple[0] => tuple[1] }
|
|
logLevel = local.envs["log_level"]
|
|
|
|
regions = [
|
|
{
|
|
"name": "us-east-2", // Ohio
|
|
"start": local.envs["us_east_2_start"],
|
|
"end": local.envs["us_east_2_end"],
|
|
},
|
|
{
|
|
"name": "eu-west-1", // Ireland
|
|
"start": local.envs["eu_west_1_start"],
|
|
"end": local.envs["eu_west_1_end"],
|
|
},
|
|
{
|
|
"name": "ap-southeast-2", // Sydney
|
|
"start": local.envs["ap_southeast_2_start"],
|
|
"end": local.envs["ap_southeast_2_end"],
|
|
}
|
|
]
|
|
|
|
keyNames = {
|
|
for r in local.regions :
|
|
r.name => [for i in range(r.start, r.end+1) : "xdc${i}"]
|
|
}
|
|
|
|
devnetNodeKeys = {
|
|
for r in local.regions :
|
|
r.name => { for i in local.keyNames[r.name]: i => local.predefinedNodesConfig[i] }
|
|
}
|
|
}
|