Add network navigation and network icon

This commit is contained in:
Andrew Cravenho 2018-09-25 00:06:34 -04:00
parent 0d5bc8130d
commit 54c3940111
2 changed files with 30 additions and 0 deletions

View File

@ -101,6 +101,22 @@ variable "chain_subnetwork" {
}
}
variable "chain_network_icon" {
description = "A map of chain names to the network iconn"
default = {
"sokol" = "%{\"POA Core\" => \"https://blockscout.com/poa/core\", \"POA Sokol\" => \"https://blockscout.com/poa/sokol\"}"
}
}
variable "chain_network_navigation" {
description = "A map of chain names to the network navigation"
default = {
"sokol" = "_test_network_icon.html"
}
}
# RDS/Database configuration
variable "db_id" {
description = "The identifier for the RDS database"

View File

@ -88,6 +88,20 @@ resource "aws_ssm_parameter" "subnetwork" {
type = "String"
}
resource "aws_ssm_parameter" "network_icon" {
count = "${length(var.chains)}"
name = "/${var.prefix}/${element(keys(var.chain_network_icon),count.index)}/network_icon"
value = "${element(values(var.chain_network_icon), count.index)}"
type = "String"
}
resource "aws_ssm_parameter" "network_navigation" {
count = "${length(var.chains)}"
name = "/${var.prefix}/${element(keys(var.chain_network_navigation),count.index)}/network_navigation"
value = "${element(values(var.chain_network_navigation), count.index)}"
type = "String"
}
resource "aws_ssm_parameter" "exq_blocks_concurrency" {
count = "${length(var.chains)}"
name = "/${var.prefix}/${element(keys(var.chains),count.index)}/exq_blocks_concurrency"