https://infracost.io logo
Title
p

plain-optician-27145

04/22/2023, 8:02 PM
I was testing out the infracost /graphql API, I was able to get only one payload
{
  "query": "{ products(filter: {vendorName: \"aws\", service: \"AmazonEC2\", region: \"us-east-1\", attributeFilters: [{key: \"instanceType\", value: \"m3.large\"}, {key: \"operatingSystem\", value: \"Linux\"}, {key: \"tenancy\", value: \"Shared\"}, {key: \"capacitystatus\", value: \"Used\"}, {key: \"preInstalledSw\", value: \"NA\"}]}) { prices(filter: {purchaseOption: \"on_demand\"}) { USD } } } "
}
Is there any place I can get the different payloads or how to build the payload for different cloud providers?
b

busy-agent-35515

04/22/2023, 8:53 PM
For individual resources you can read the code to find the specific attributes filters
p

plain-optician-27145

04/23/2023, 2:23 AM
This helps. Thanks you @busy-agent-35515