Reflect changes at #86 PR
This commit is contained in:
parent
0d2c96e301
commit
06ed149c3f
|
@ -104,6 +104,9 @@ networks: >
|
||||||
chain_network_icon = {
|
chain_network_icon = {
|
||||||
"mychain" = "_test_network_icon.html"
|
"mychain" = "_test_network_icon.html"
|
||||||
}
|
}
|
||||||
|
chain_graphiql_transaction = {
|
||||||
|
"mychain" = "0xbc426b4792c48d8ca31ec9786e403866e14e7f3e4d39c7f2852e518fae529ab4"
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- `aws_access_key` and `aws_secret_key` is a credentials pair that provides access to AWS for the deployer;
|
- `aws_access_key` and `aws_secret_key` is a credentials pair that provides access to AWS for the deployer;
|
||||||
|
|
|
@ -116,6 +116,11 @@ new_relic_license_key: ""
|
||||||
# "core" = "_test_network_icon.html",
|
# "core" = "_test_network_icon.html",
|
||||||
# "sokol" = "_test_network_icon.html"
|
# "sokol" = "_test_network_icon.html"
|
||||||
# }
|
# }
|
||||||
|
## The following variable maps the chain names to random transaction hash on that chain
|
||||||
|
# chain_graphiql_transaction = {
|
||||||
|
# "core" = "0xbc426b4792c48d8ca31ec9786e403866e14e7f3e4d39c7f2852e518fae529ab4"
|
||||||
|
# "sokol" = "0xbc426b4792c48d8ca31ec9786e403866e14e7f3e4d39c7f2852e518fae529ab5"
|
||||||
|
# }
|
||||||
networks: >
|
networks: >
|
||||||
chains = {
|
chains = {
|
||||||
"mychain" = "url/to/endpoint"
|
"mychain" = "url/to/endpoint"
|
||||||
|
@ -147,3 +152,6 @@ networks: >
|
||||||
chain_network_icon = {
|
chain_network_icon = {
|
||||||
"mychain" = "_test_network_icon.html"
|
"mychain" = "_test_network_icon.html"
|
||||||
}
|
}
|
||||||
|
chain_graphiql_transaction = {
|
||||||
|
"mychain" = "0xbc426b4792c48d8ca31ec9786e403866e14e7f3e4d39c7f2852e518fae529ab4"
|
||||||
|
}
|
||||||
|
|
|
@ -5,6 +5,13 @@ resource "aws_ssm_parameter" "new_relic_app_name" {
|
||||||
type = "String"
|
type = "String"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "aws_ssm_parameter" "graphiql_transaction" {
|
||||||
|
count = "${length(var.chains)}"
|
||||||
|
name = "/${var.prefix}/${element(keys(var.chains),count.index)}/graphiql_transaction"
|
||||||
|
value = "${element(values(var.chain_graphiql_transaction),count.index)}"
|
||||||
|
type = "String"
|
||||||
|
}
|
||||||
|
|
||||||
resource "aws_ssm_parameter" "new_relic_license_key" {
|
resource "aws_ssm_parameter" "new_relic_license_key" {
|
||||||
count = "${var.new_relic_license_key == "" ? 0 : length(var.chains)}"
|
count = "${var.new_relic_license_key == "" ? 0 : length(var.chains)}"
|
||||||
name = "/${var.prefix}/${element(keys(var.chains),count.index)}/new_relic_license_key"
|
name = "/${var.prefix}/${element(keys(var.chains),count.index)}/new_relic_license_key"
|
||||||
|
|
|
@ -58,3 +58,7 @@ variable "secret_key_base" {}
|
||||||
variable "alb_ssl_policy" {}
|
variable "alb_ssl_policy" {}
|
||||||
variable "alb_certificate_arn" {}
|
variable "alb_certificate_arn" {}
|
||||||
variable "use_ssl" {}
|
variable "use_ssl" {}
|
||||||
|
|
||||||
|
variable "chain_graphiql_transaction" {
|
||||||
|
default = {}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue