2022-02-03 20:38:55 +00:00
|
|
|
module "nimbus_log_store" {
|
|
|
|
source = "./modules/dummy-module"
|
2021-01-20 14:16:39 +00:00
|
|
|
|
2022-02-03 20:38:55 +00:00
|
|
|
name = "store"
|
|
|
|
env = "logs"
|
2021-01-20 14:16:39 +00:00
|
|
|
stage = "nimbus"
|
2022-02-03 20:38:55 +00:00
|
|
|
group = "logs.nimbus"
|
2021-01-20 14:16:39 +00:00
|
|
|
domain = var.domain
|
|
|
|
|
2022-02-03 20:38:55 +00:00
|
|
|
ips = [
|
|
|
|
"65.108.129.55",
|
|
|
|
"65.108.129.56",
|
|
|
|
"65.108.129.57",
|
2021-01-20 14:16:39 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2022-02-03 20:38:55 +00:00
|
|
|
resource "cloudflare_record" "nimbus_log_store" {
|
2021-01-20 14:16:39 +00:00
|
|
|
zone_id = local.zones["status.im"]
|
|
|
|
name = "nimbus-es.infra"
|
2022-02-03 20:38:55 +00:00
|
|
|
value = module.nimbus_log_store.public_ips[count.index]
|
2021-01-20 14:16:39 +00:00
|
|
|
count = var.log_stores_count
|
|
|
|
type = "A"
|
|
|
|
proxied = true
|
|
|
|
}
|