mirror of
https://github.com/Blockstream/satellite-api.git
synced 2025-02-24 06:07:39 +01:00
37 lines
806 B
HCL
37 lines
806 B
HCL
resource "google_compute_firewall" "tor-healthcheck" {
|
|
name = "${var.name}-healthcheck"
|
|
network = "${data.google_compute_network.default.self_link}"
|
|
|
|
count = "${var.create_resources}"
|
|
|
|
allow {
|
|
protocol = "tcp"
|
|
ports = ["9050"]
|
|
}
|
|
|
|
source_ranges = ["130.211.0.0/22", "35.191.0.0/16", "10.0.0.0/8"]
|
|
|
|
target_service_accounts = [
|
|
"${google_service_account.tor.email}",
|
|
]
|
|
}
|
|
|
|
resource "google_compute_firewall" "prom-traffic" {
|
|
name = "${var.name}-prometheus-access"
|
|
network = "${data.google_compute_network.default.self_link}"
|
|
|
|
count = "${var.create_resources}"
|
|
|
|
allow {
|
|
protocol = "tcp"
|
|
ports = ["9100"]
|
|
}
|
|
|
|
source_service_accounts = [
|
|
"${var.prom_service_acct}",
|
|
]
|
|
|
|
target_service_accounts = [
|
|
"${google_service_account.tor.email}",
|
|
]
|
|
}
|