ce7cb702218693d08ea6d83464d2457c9250027c
This commit is contained in:
commit
34c5f8963c
1 changed files with 145336 additions and 0 deletions
16
terraform/external/cloudflare/health.tf
vendored
Normal file
16
terraform/external/cloudflare/health.tf
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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
|
||||
}
|
||||
Loading…
Reference in a new issue