From bc6dab1bb78872ea7979fee2811272f6c49986ab Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Thu, 7 Nov 2024 12:56:49 +0800 Subject: [PATCH] infra/cloudflare: less hardcoding --- infra/cloudflare.tf | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/infra/cloudflare.tf b/infra/cloudflare.tf index cdd94c6..d7a170f 100644 --- a/infra/cloudflare.tf +++ b/infra/cloudflare.tf @@ -1,5 +1,5 @@ resource "cloudflare_record" "terraform_managed_resource_3bb7c82777ada1dcafb0cd16ae22bcac" { - content = "149.28.143.116" + content = module.vultr["sin0"].ipv4 name = "sin0" proxied = false ttl = 1 @@ -7,17 +7,8 @@ resource "cloudflare_record" "terraform_managed_resource_3bb7c82777ada1dcafb0cd1 zone_id = "4b7a25e8fb5035c84820c26e454ed03d" } -resource "cloudflare_record" "terraform_managed_resource_3d75642939f7653d8d51dfb93c518b07" { - content = "18.177.132.61" - name = "tyo0" - proxied = false - ttl = 1 - type = "A" - zone_id = "4b7a25e8fb5035c84820c26e454ed03d" -} - resource "cloudflare_record" "terraform_managed_resource_3393fe6c746c9f55d841397c77900a59" { - content = "2001:19f0:4400:7041:5400:5ff:fe1b:42d" + content = module.vultr["sin0"].ipv6 name = "sin0" proxied = false ttl = 1 @@ -25,8 +16,17 @@ resource "cloudflare_record" "terraform_managed_resource_3393fe6c746c9f55d841397 zone_id = "4b7a25e8fb5035c84820c26e454ed03d" } +resource "cloudflare_record" "terraform_managed_resource_3d75642939f7653d8d51dfb93c518b07" { + content = module.aws["tyo0"].ipv4 + name = "tyo0" + proxied = false + ttl = 1 + type = "A" + zone_id = "4b7a25e8fb5035c84820c26e454ed03d" +} + resource "cloudflare_record" "terraform_managed_resource_03f9bd0678d8d76dc0e07892bc554393" { - content = "2406:da14:f1f:2f00:e63f:64a0:7505:7534" + content = module.aws["tyo0"].ipv6 name = "tyo0" proxied = false ttl = 1