infra-faucet/workspaces.tf

32 lines
778 B
HCL

/* WORKSPACES ---------------------------------------------*/
/**
* This is a hacky way of binding specific variable
* values to different Terraform workspaces.
*
* Details:
* https://github.com/hashicorp/terraform/issues/15966
*/
locals {
env = {
defaults = {
miner_count = 3
# By default we use 2 CPU 7.5 GB RAM instances
miner_instance_type = "n1-standard-2"
# 100 GBs is fine for now
miner_volume_size = 100
}
# Default settings for Rinkeby
rinkeby = {}
# Ropsten is memory intensive, 13 GB of RAM given
ropsten = {
miner_instance_type = "n1-highmem-2"
# 200 GBs should be enough for Ropsten
miner_volume_size = 200
}
}
}
/*---------------------------------------------------------*/