Create a single network path and provide health check

This commit is contained in:
Andrew Cravenho 2018-09-27 19:51:47 -04:00
parent 8f9427fe1b
commit de2f4fc967
6 changed files with 3 additions and 18 deletions

View File

@ -137,8 +137,7 @@ chain_check_origin = "[\"blockscout.com\"]"
chain_coin "POA"
chain_network "POA Network"
chain_subnetwork = "Sokol Testnet"
chain_network_path = "poa"
chain_subnetwork_path = "sokol"
chain_network_path = "/poa/sokol"
chain_network_icon = "_test_network_icon.html"
```

View File

@ -23,7 +23,6 @@ module "stack" {
chain_network = "${var.chain_network}"
chain_subnetwork = "${var.chain_subnetwork}"
chain_network_path = "${var.chain_network_path}"
chain_subnetwork_path = "${var.chain_subnetwork_path}"
chain_network_icon = "${var.chain_network_icon}"
vpc_cidr = "${var.vpc_cidr}"

View File

@ -82,12 +82,7 @@ variable "chain_subnetwork" {
variable "chain_network_path" {
description = "The network name path"
default = "poa"
}
variable "chain_subnetwork_path" {
description = "The subnetwork name path"
default = "sokol"
default = "/poa/sokol"
}
variable "chain_network_icon" {

View File

@ -94,13 +94,6 @@ resource "aws_ssm_parameter" "network_path" {
type = "String"
}
resource "aws_ssm_parameter" "subnetwork_path" {
count = "${length(var.chains)}"
name = "/${var.prefix}/${element(keys(var.chains),count.index)}/subnetwork_path"
value = "${var.chain_subnetwork_path}"
type = "String"
}
resource "aws_ssm_parameter" "network_icon" {
count = "${length(var.chains)}"
name = "/${var.prefix}/${element(keys(var.chains),count.index)}/network_icon"

View File

@ -53,7 +53,7 @@ resource "aws_lb_target_group" "explorer" {
unhealthy_threshold = 2
timeout = 15
interval = 30
path = "/blocks"
path = "${var.chain_network_path}/blocks"
port = 4000
}
}

View File

@ -20,7 +20,6 @@ variable "chain_coin" {}
variable "chain_network" {}
variable "chain_subnetwork" {}
variable "chain_network_path" {}
variable "chain_subnetwork_path" {}
variable "chain_network_icon" {}
variable "db_id" {}