rule.tf 255 Bytes
Newer Older
Mike Horwath's avatar
Mike Horwath committed
1
# TBD
Mike Horwath's avatar
Mike Horwath committed
2
3
4

resource "cloudflare_access_rule" "whitelisted_ip" {
  count = "${length(var.whitelist_ips)}"
Mike Horwath's avatar
Mike Horwath committed
5
  notes = "${var.notes}"
Mike Horwath's avatar
Mike Horwath committed
6
7
8
9
10
11
12
  mode  = "whitelist"

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