mirror of
https://github.com/Blockstream/satellite-api.git
synced 2025-02-24 14:10:36 +01:00
37 lines
1.2 KiB
HCL
37 lines
1.2 KiB
HCL
resource "google_dns_managed_zone" "blockstream-space" {
|
|
name = "blockstream-space"
|
|
dns_name = "blockstream.space."
|
|
description = "A long time ago, in a galaxy far, far away... P.S. Don't edit directly in Gcloud, but rather in the Satellite API repo (Otherwise, things break and Chase gets really mad)."
|
|
project = "${var.project}"
|
|
|
|
labels = {
|
|
managed-by = "terraform"
|
|
}
|
|
}
|
|
|
|
resource "google_dns_record_set" "a-satellite" {
|
|
name = "${google_dns_managed_zone.blockstream-space.dns_name}"
|
|
managed_zone = "${google_dns_managed_zone.blockstream-space.name}"
|
|
type = "A"
|
|
ttl = 300
|
|
|
|
rrdatas = ["${var.satellite_lb}"]
|
|
}
|
|
|
|
resource "google_dns_record_set" "a-satellite-api" {
|
|
name = "api.${google_dns_managed_zone.blockstream-space.dns_name}"
|
|
managed_zone = "${google_dns_managed_zone.blockstream-space.name}"
|
|
type = "A"
|
|
ttl = 300
|
|
|
|
rrdatas = ["${var.satellite_api_lb}"]
|
|
}
|
|
|
|
resource "google_dns_record_set" "a-satellite-api-staging" {
|
|
name = "staging-api.${google_dns_managed_zone.blockstream-space.dns_name}"
|
|
managed_zone = "${google_dns_managed_zone.blockstream-space.name}"
|
|
type = "A"
|
|
ttl = 300
|
|
|
|
rrdatas = ["${var.satellite_api_lb_staging}"]
|
|
}
|