[Bug]: data.aws_vpc_ipam_pools only returns one result #40314
Labels
bug
Addresses a defect in current functionality.
service/ipam
Issues and PRs that pertain to the ipam service.
Terraform Core Version
1.7.5, 1.9.8
AWS Provider Version
5.77, 5.4, 5.0, 4.67
Affected Resource(s)
data.aws_vpc_ipam_pools
Expected Behavior
Documentation suggest that this resource returns a list of IPAM pools:
ipam_pools - List of IPAM pools and their attributes. See below for details
Actual Behavior
The list of pools only contains a single entry, the first in the list it gets from AWS API, and seems to be a set rather than a list.
Terraform debug output shows that the API returns multiple pools, as does aws cli.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Have multiple IPAM pools in your account and run terraform plan with the above.
Debug Output
Panic Output
No response
Important Factoids
In this issue the pools output shows multiple pools: #32106
Docs also say that a filter is required but it works without one. Issue persists even if using a filter.
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: