Fix Readme and main variables

This commit is contained in:
Andrew Cravenho 2018-09-27 05:55:06 -04:00
parent 3427aa0a76
commit 8f9427fe1b
3 changed files with 5 additions and 8 deletions

View File

@ -130,8 +130,6 @@ The default of this repo is to build infra for the `sokol` chain, but you may no
```terraform
chain_jsonrpc_variant = "parity"
chain = "sokol"
chain_ethereum_url = "https://sokol.poa.network"
chain_trace_endpoint = "https://sokol-trace.poa.network"
chain_ws_endpoint = "wss://sokol-ws.poa.network/ws"
chain_logo = "/images/sokol_logo.svg"

View File

@ -14,8 +14,7 @@ module "stack" {
region = "${var.region}"
key_name = "${var.key_name}"
chain_jsonrpc_variant = "${var.chain_jsonrpc_variant}"
chain = "${var.chain}"
chain_ethereum_url = "${var.chain_ethereum_url}"
chains = "${var.chains}"
chain_trace_endpoint = "${var.chain_trace_endpoint}"
chain_ws_endpoint = "${var.chain_ws_endpoint}"
chain_logo = "${var.chain_logo}"

View File

@ -17,7 +17,7 @@ resource "aws_route" "internet_access" {
# The ALB for the app server
resource "aws_lb" "explorer" {
count = "${length(var.chains)}"
count = "${length(var.chains)}"
name = "${var.prefix}-explorer-${element(keys(var.chains),count.index)}-alb"
internal = false
load_balancer_type = "application"
@ -66,8 +66,8 @@ resource "aws_alb_listener" "alb_listener" {
ssl_policy = "${var.alb_ssl_policy}"
certificate_arn = "${var.alb_certificate_arn}"
default_action {
target_group_arn = "${aws_lb_target_group.explorer.arn}"
type = "forward"
default_action {
type = "forward"
target_group_arn = "${aws_lb_target_group.explorer.arn}"
}
}