Files
terraform-cloudflare-tunnel…/gateway_dns_location.tf
Hubert Cornet fa5e218375
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 13s
Update gateway_dns_location.tf
2025-11-17 20:07:53 +01:00

200 lines
3.9 KiB
HCL

# =============================================================================
# CLOUDFLARE : Gateway : DNS location
# =============================================================================
#
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"
}]
}
}
}
#
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"
}]
}
}
}
#
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"
}]
}
}
}
#
resource "cloudflare_zero_trust_dns_location" "dns_location_GCP" {
account_id = local.cloudflare_account_id
name = "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"
}]
}
}
}
#
resource "cloudflare_zero_trust_dns_location" "dns_location_azure" {
account_id = local.cloudflare_account_id
name = "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"
}]
}
}
}
#
resource "cloudflare_zero_trust_dns_location" "dns_location_ovh" {
account_id = local.cloudflare_account_id
name = "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"
}]
}
}
}
#
resource "cloudflare_zero_trust_dns_location" "dns_location_aws" {
account_id = local.cloudflare_account_id
name = "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"
}]
}
}
}