I am using the aws_vpc_ipam_pools
data source to return a list of IPAM pools in an AWS account.
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/vpc_ipam_pools.html
However, I am only getting a partial list of IPAM pools unless I filter for a specific IPAM pool ID.
This is how I am using the data source. There are 10 IPAM pools in the account that match the criteria specified in the filter and I only get 3 returned in the ipam_pools list. For some reason, when I query by specific IPAM pool IDs, I am able to get results that are not included in the list when using any other filter.
data "aws_vpc_ipam_pools" "ipv6_pools" {
provider = aws
filter {
name = "address-family"
values = ["ipv6"]
}
}
My immediate thought is that it may have something to do with the fact that 7/10 of the IPAM pools are nested, but at least one nested IPAM pool is always returned when querying with the filter above.
Terraform version = 1.9.1
AWS provider version = 5.57.0
7