mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-23 01:24:36 +07:00
21 lines
393 B
HCL
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"
|
|
]
|
|
}
|