rule.tf 271 Bytes
Newer Older
Mike Horwath's avatar
Mike Horwath committed
1
# TBD
Mike Horwath's avatar
Mike Horwath committed
2 3 4 5 6 7 8 9 10 11 12

resource "cloudflare_access_rule" "whitelisted_ip" {
  count = "${length(var.whitelist_ips)}"
  notes = "Whitelist IPs from Terraform"
  mode  = "whitelist"

  configuration {
    target = "ip_range"
    value  = "${element(var.whitelist_ips, count.index)}"
  }
}