cloudflare_ip_ranges
Use this data source to get the IP ranges of CloudFlare edge nodes.
Example Usage
data "cloudflare_ip_ranges" "cloudflare" {} resource "google_compute_firewall" "allow_cloudflare_ingress" { name = "from_cloudflare" network = "default" ingress { ports = "443" protocol = "tcp" source_ranges = ["${data.cloudflare_ip_ranges.cloudflare.cidr_blocks}"] } }
Attributes Reference
-
cidr_blocks
- The lexically ordered list of all CIDR blocks. -
ipv4_cidr_blocks
- The lexically ordered list of only the IPv4 CIDR blocks. -
ipv6_cidr_blocks
- The lexically ordered list of only the IPv6 CIDR blocks.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/cloudflare/d/ip_ranges.html