16 lines
435 B
Terraform
16 lines
435 B
Terraform
|
|
data "terraform_remote_state" "cf_tunnel" {
|
||
|
|
backend = "pg"
|
||
|
|
config = {
|
||
|
|
conn_str = "postgres://10.234.158.153:5432/tf_state?sslmode=require"
|
||
|
|
schema_name = "ext_cf_tunnel"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
resource "cloudflare_dns_record" "health" {
|
||
|
|
zone_id = var.zone_id
|
||
|
|
name = "health.quorate.dev"
|
||
|
|
type = "CNAME"
|
||
|
|
content = "${data.terraform_remote_state.cf_tunnel.outputs.tunnel_id}.cfargotunnel.com"
|
||
|
|
ttl = 1
|
||
|
|
proxied = true
|
||
|
|
}
|