khuedoan-homelab/external/cloudflare.tf

21 lines
393 B
HCL

data "cloudflare_zone" "khuedoan_com" {
name = "khuedoan.com"
}
data "cloudflare_api_token_permission_groups" "all" {}
data "http" "public_ipv4" {
url = "https://ipv4.icanhazip.com"
}
# data "http" "public_ipv6" {
# url = "https://ipv6.icanhazip.com"
# }
locals {
public_ips = [
"${chomp(data.http.public_ipv4.body)}/32",
# "${chomp(data.http.public_ipv6.body)}/128"
]
}