Provides a WAF IPSet Resource

Example Usage

resource "aws_waf_ipset" "ipset" {
  name = "tfIPSet"

  ip_set_descriptors {
    type  = "IPV4"
    value = ""

  ip_set_descriptors {
    type  = "IPV4"
    value = ""

Argument Reference

The following arguments are supported:

  • name - (Required) The name or description of the IPSet.
  • ip_set_descriptors - (Optional) One or more pairs specifying the IP address type (IPV4 or IPV6) and the IP address range (in CIDR format) from which web requests originate.

Nested Blocks



  • type - (Required) Type of the IP address - IPV4 or IPV6.
  • value - (Required) An IPv4 or IPv6 address specified via CIDR notation. e.g. or 1111:0000:0000:0000:0000:0000:0000:0000/64

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The ID of the WAF IPSet.
  • arn - The ARN of the WAF IPSet.


WAF IPSets can be imported using their ID, e.g.

$ terraform import aws_waf_ipset.example a1b2c3d4-d5f6-7777-8888-9999aaaabbbbcccc

© 2018 HashiCorpLicensed under the MPL 2.0 License.