2020-02-05 12:35:36 +00:00
|
|
|
module "nimbus_dashboard" {
|
|
|
|
source = "github.com/status-im/infra-tf-amazon-web-services"
|
|
|
|
|
|
|
|
name = "node"
|
|
|
|
env = "dash"
|
|
|
|
group = "log-dash"
|
|
|
|
stage = "nimbus"
|
|
|
|
domain = var.domain
|
|
|
|
|
|
|
|
/* Scaling */
|
|
|
|
host_count = 1
|
|
|
|
instance_type = "t3a.medium" /* 4GB RAM at least */
|
|
|
|
|
|
|
|
/* Firewall */
|
|
|
|
open_tcp_ports = [
|
|
|
|
"80", /* HTTP */
|
|
|
|
"443", /* HTTPS */
|
|
|
|
]
|
|
|
|
|
|
|
|
/* Plumbing */
|
2020-05-19 12:42:44 +00:00
|
|
|
vpc_id = module.nimbus_network.vpc.id
|
|
|
|
subnet_id = module.nimbus_network.subnets[0].id
|
|
|
|
secgroup_id = module.nimbus_network.secgroup.id
|
2020-02-05 12:35:36 +00:00
|
|
|
keypair_name = aws_key_pair.jakubgs.key_name
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "cloudflare_record" "nimbus_dashboard" {
|
|
|
|
zone_id = local.zones["status.im"]
|
|
|
|
name = "nimbus-logs"
|
|
|
|
value = module.nimbus_dashboard.public_ips[0]
|
|
|
|
type = "A"
|
|
|
|
proxied = true
|
|
|
|
}
|