Data Source: aws_vpc_ipam_pools

aws_vpc_ipam_pools provides details about IPAM pools.

This resource can prove useful when IPAM pools are created in another root module and you need the pool ids as input variables. For example, pools can be shared via RAM and used to create vpcs with CIDRs from that pool.

Example Usage

data "aws_vpc_ipam_pools" "test" {
  filter {
    name   = "description"
    values = ["*test*"]
  }

  filter {
    name   = "address-family"
    values = ["ipv4"]
  }
}

Argument Reference

The arguments of this data source act as filters for querying the available IPAM Pools in the current region.

filter

Attribute Reference

This data source exports the following attributes in addition to the arguments above:

ipam_pools

The following attributes are available on each pool entry found.