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

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/cloudflare/d/ip_ranges.html