» 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