https://infracost.io logo
#help
Title
# help
g

gifted-ice-56627

12/07/2023, 5:12 PM
Hi InfraTeam. I'm trying to use the Infracost Pricing API, but I still need more information to use it. In the documentation there are two tables that describe the "main" properties of the two types. However I can't find the structure of the complete list of attributes for "attributefiltes" and its various possible responses. I was wondering if there is any documentation with this information or if you could provide me with it
l

little-author-61621

12/07/2023, 5:43 PM
@gifted-ice-56627 it’s not something we have concentrated on much yet. The best way to see suitable attribute filters for different resources is to probably look through the Infracost code and find where we are specifying
AttributeFilters
for the service/product you are looking at. Here’s an example for EC2 instances: https://github.com/infracost/infracost/blob/master/internal/resources/aws/instance.go#L209-L216 Here’s a link that finds all the
AttributeFilters
in the codebase: https://github.com/search?q=repo%3Ainfracost%2Finfracost%20AttributeFilters&type=code
g

gifted-ice-56627

12/07/2023, 6:27 PM
I'll take a look at it, thanks