Use this data source to get the IP ranges of Cloudflare network.
data "cloudflare_ip_ranges" "cloudflare" {}
resource "example_firewall_resource" "example" {
name = "from-cloudflare"
network = "default"
source_ranges = data.cloudflare_ip_ranges.cloudflare.ipv4_cidr_blocks
allow {
ports = "443"
protocol = "tcp"
}
}
china_ipv4_cidr_blocks
(List of String) The lexically ordered list of only the IPv4 China CIDR blocks.china_ipv6_cidr_blocks
(List of String) The lexically ordered list of only the IPv6 China CIDR blocks.cidr_blocks
(List of String) The lexically ordered list of all non-China CIDR blocks.id
(String) The ID of this resource.ipv4_cidr_blocks
(List of String) The lexically ordered list of only the IPv4 CIDR blocks.ipv6_cidr_blocks
(List of String) The lexically ordered list of only the IPv6 CIDR blocks.