diff --git a/terraform/validators.tf b/terraform/validators.tf index 5c60f6b55c6e..525e6a50bf26 100644 --- a/terraform/validators.tf +++ b/terraform/validators.tf @@ -203,7 +203,7 @@ data "template_file" "ecs_task_definition" { cfg_listen_addr = var.validator_use_public_ip == true ? element(aws_instance.validator.*.public_ip, count.index) : element(aws_instance.validator.*.private_ip, count.index) cfg_node_index = count.index cfg_num_validators = var.cfg_num_validators_override == 0 ? var.num_validators : var.cfg_num_validators_override - cfg_num_validators_in_genesis = var.num_validators_in_genesis + cfg_num_validators_in_genesis = var.num_validators_in_genesis == 0? var.num_validators : var.num_validators_in_genesis cfg_seed = var.config_seed cfg_seed_peer_ip = local.seed_peer_ip diff --git a/terraform/variables.tf b/terraform/variables.tf index 7bc1a7f45b4c..ed81caf449d5 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -56,8 +56,8 @@ variable "num_validators" { } variable "num_validators_in_genesis" { - default = 4 - description = "Number of validator nodes to include in genesis blob" + default = 0 + description = "Number of validator nodes to include in genesis blob, 0 will default to using num_validators" } # This allows you to use a override number of validators for config generation