infra-faucet/dns.tf

28 lines
796 B
HCL

/* DNS Entries for faucet APIs */
resource "cloudflare_record" "main-ropsten" {
zone_id = data.cloudflare_zones.active.zones[0].id
name = "faucet-ropsten"
type = "A"
proxied = true
value = module.main.public_ips[count.index]
count = length(module.main.public_ips)
}
resource "cloudflare_record" "main-rinkeby" {
zone_id = data.cloudflare_zones.active.zones[0].id
name = "faucet-rinkeby"
type = "A"
proxied = true
value = module.main.public_ips[count.index]
count = length(module.main.public_ips)
}
resource "cloudflare_record" "main-goerli" {
zone_id = data.cloudflare_zones.active.zones[0].id
name = "faucet-goerli"
type = "A"
proxied = true
value = module.main.public_ips[count.index]
count = length(module.main.public_ips)
}