2018-04-26 09:41:22 -07:00
|
|
|
variable "key_name" {
|
|
|
|
description = "The name of the SSH key to use with EC2 hosts"
|
|
|
|
default = "poa"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "vpc_cidr" {
|
|
|
|
description = "Virtual Private Cloud CIDR block"
|
|
|
|
default = "10.0.0.0/16"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "public_subnet_cidr" {
|
|
|
|
description = "The CIDR block for the public subnet"
|
|
|
|
default = "10.0.0.0/24"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "db_subnet_cidr" {
|
|
|
|
description = "The CIDR block for the database subnet"
|
|
|
|
default = "10.0.1.0/16"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "dns_zone_name" {
|
|
|
|
description = "The internal DNS name"
|
|
|
|
default = "poa.internal"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "instance_type" {
|
|
|
|
description = "The EC2 instance type to use for app servers"
|
|
|
|
default = "m5.xlarge"
|
|
|
|
}
|
|
|
|
|
2018-09-04 14:50:53 -07:00
|
|
|
variable "root_block_size" {
|
|
|
|
description = "The EC2 instance root block size in GB"
|
|
|
|
default = 8
|
|
|
|
}
|
|
|
|
|
2018-04-26 09:41:22 -07:00
|
|
|
variable "chains" {
|
|
|
|
description = "A map of chain names to urls"
|
|
|
|
|
|
|
|
default = {
|
|
|
|
"sokol" = "https://sokol-trace.poa.network"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "chain_trace_endpoints" {
|
|
|
|
description = "A map of chain names to trace urls"
|
|
|
|
|
|
|
|
default = {
|
|
|
|
"sokol" = "https://sokol-trace.poa.network"
|
|
|
|
}
|
|
|
|
}
|
2018-09-24 18:00:24 -07:00
|
|
|
variable "chain_ws_endpoints" {
|
|
|
|
description = "A map of chain names to websocket urls"
|
|
|
|
|
|
|
|
default = {
|
|
|
|
"sokol" = "wss://sokol-ws.poa.network/ws"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "chain_logo" {
|
|
|
|
description = "A map of chain names to logo urls"
|
|
|
|
|
|
|
|
default = {
|
|
|
|
"sokol" = "/images/sokol_logo.svg"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "chain_css_file" {
|
|
|
|
description = "A map of chain names to the css file"
|
|
|
|
|
|
|
|
default = {
|
|
|
|
"sokol" = "sokol_variables"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "chain_check_origin" {
|
|
|
|
description = "A map of chain names to the check_origin configuration"
|
|
|
|
default = "['//*.blockscout.com']"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "chain_coin" {
|
|
|
|
description = "A map of chain names to the coin name"
|
|
|
|
|
|
|
|
default = {
|
|
|
|
"sokol" = "POA"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "chain_network" {
|
|
|
|
description = "A map of chain names to the network name"
|
|
|
|
|
|
|
|
default = {
|
|
|
|
"sokol" = "POA Network"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "chain_subnetwork" {
|
|
|
|
description = "A map of chain names to the subnetwork name"
|
|
|
|
|
|
|
|
default = {
|
|
|
|
"sokol" = "Sokol Testnet"
|
|
|
|
}
|
|
|
|
}
|
2018-04-26 09:41:22 -07:00
|
|
|
|
2018-09-26 18:41:44 -07:00
|
|
|
variable "chain_network_path" {
|
|
|
|
description = "A map of chain names to the network name"
|
|
|
|
|
|
|
|
default = {
|
|
|
|
"sokol" = "poa"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "chain_subnetwork_path" {
|
|
|
|
description = "A map of chain names to the subnetwork name"
|
2018-09-24 21:06:34 -07:00
|
|
|
|
|
|
|
default = {
|
2018-09-26 18:41:44 -07:00
|
|
|
"sokol" = "sokol"
|
2018-09-24 21:06:34 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-26 18:41:44 -07:00
|
|
|
|
|
|
|
variable "chain_network_icon" {
|
2018-09-24 21:06:34 -07:00
|
|
|
description = "A map of chain names to the network navigation"
|
|
|
|
|
|
|
|
default = {
|
|
|
|
"sokol" = "_test_network_icon.html"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-26 09:41:22 -07:00
|
|
|
# RDS/Database configuration
|
|
|
|
variable "db_id" {
|
|
|
|
description = "The identifier for the RDS database"
|
|
|
|
default = "poa"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "db_name" {
|
|
|
|
description = "The name of the database associated with the application"
|
|
|
|
default = "poa"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "db_username" {
|
|
|
|
description = "The name of the user which will be used to connect to the database"
|
|
|
|
default = "poa"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "db_password" {
|
|
|
|
description = "The password associated with the database user"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "db_storage" {
|
|
|
|
description = "The database storage size in GB"
|
2018-06-05 08:42:40 -07:00
|
|
|
default = "100"
|
2018-04-26 09:41:22 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "db_storage_type" {
|
|
|
|
description = "The type of database storage to use: magnetic, gp2, io1"
|
|
|
|
default = "gp2"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "db_instance_class" {
|
|
|
|
description = "The instance class of the database"
|
|
|
|
default = "db.m4.large"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "secret_key_base" {
|
|
|
|
description = "The secret key base to use for Explorer"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "new_relic_app_name" {
|
|
|
|
description = "The name of the application in New Relic"
|
2018-05-17 10:45:51 -07:00
|
|
|
default = ""
|
2018-04-26 09:41:22 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "new_relic_license_key" {
|
|
|
|
description = "The license key for talking to New Relic"
|
2018-05-17 10:45:51 -07:00
|
|
|
default = ""
|
2018-04-26 09:41:22 -07:00
|
|
|
}
|
2018-08-17 06:39:53 -07:00
|
|
|
|
|
|
|
# SSL Certificate configuration
|
|
|
|
variable "alb_ssl_policy" {
|
|
|
|
description = "The SSL Policy for the Application Load Balancer"
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "alb_certificate_arn" {
|
|
|
|
description = "The Certificate ARN for the Applicationn Load Balancer Policy"
|
|
|
|
default = ""
|
|
|
|
}
|