Update Networks-Resolvers_Proxies-DNS_Locations.tf

This commit is contained in:
2025-11-18 19:41:44 +01:00
parent 8faea5ffbf
commit 108155f279

View File

@@ -0,0 +1,242 @@
# =============================================================================
# CLOUDFLARE : Networks : Resolvers & Proxies : DNS locations
# =============================================================================
#
resource "cloudflare_zero_trust_dns_location" "dns_location_office" {
account_id = local.cloudflare_account_id
name = "Office Location"
client_default = false
ecs_support = false
endpoints = {
doh = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
require_token = true
}
dot = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
}
ipv4 = {
enabled = true
}
ipv6 = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
}
}
networks = [{
network = "82.66.77.254/32"
}]
}
#
resource "cloudflare_zero_trust_dns_location" "dns_location_home" {
account_id = local.cloudflare_account_id
name = "Home Location"
client_default = false
# dns_destination_ips_id = "0e4a32c6-6fb8-4858-9296-98f51631e8e6"
ecs_support = true
endpoints = {
doh = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
require_token = true
}
dot = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
}
ipv4 = {
enabled = false
}
ipv6 = {
enabled = false
}
}
}
#
resource "cloudflare_zero_trust_dns_location" "dns_location_vacation" {
account_id = local.cloudflare_account_id
name = "Vacation Location"
client_default = false
ecs_support = true
endpoints = {
doh = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
require_token = true
}
dot = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
}
ipv4 = {
enabled = false
}
ipv6 = {
enabled = false
}
}
}
#
resource "cloudflare_zero_trust_dns_location" "dns_location_datacenter" {
account_id = local.cloudflare_account_id
name = "Datacenter Location"
client_default = false
ecs_support = true
endpoints = {
doh = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
require_token = true
}
dot = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
}
ipv4 = {
enabled = false
}
ipv6 = {
enabled = false
}
}
}
#
resource "cloudflare_zero_trust_dns_location" "dns_location_GCP" {
account_id = local.cloudflare_account_id
name = "Cloud provider : GCP Location"
client_default = false
ecs_support = true
endpoints = {
doh = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
require_token = true
}
dot = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
}
ipv4 = {
enabled = false
}
ipv6 = {
enabled = false
}
}
}
#
resource "cloudflare_zero_trust_dns_location" "dns_location_azure" {
account_id = local.cloudflare_account_id
name = "Cloud provider : Azure Location"
client_default = false
ecs_support = true
endpoints = {
doh = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
require_token = true
}
dot = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
}
ipv4 = {
enabled = false
}
ipv6 = {
enabled = false
}
}
}
#
resource "cloudflare_zero_trust_dns_location" "dns_location_ovh" {
account_id = local.cloudflare_account_id
name = "Cloud provider : OVH Location"
client_default = false
ecs_support = true
endpoints = {
doh = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
require_token = true
}
dot = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
}
ipv4 = {
enabled = false
}
ipv6 = {
enabled = false
}
}
}
#
resource "cloudflare_zero_trust_dns_location" "dns_location_aws" {
account_id = local.cloudflare_account_id
name = "Cloud provider : AWS Location"
client_default = false
ecs_support = true
endpoints = {
doh = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
require_token = true
}
dot = {
enabled = true
networks = [{
network = "2001:85a3::/64"
}]
}
ipv4 = {
enabled = false
}
ipv6 = {
enabled = false
}
}
}