broad-zoo-34077
05/22/2023, 9:54 AMmysterious-teacher-68276
05/22/2023, 10:10 AMattributeFilters are variable and correspond to the attributes we sync from the cloud providers. In your case the engine is not a valid key as this doesn’t appear as attribute that AWS provides. Instead it’s databaseEngine .
So to get valid prices for your query you’d have to change your query to something like:
{ products(filter: {vendorName: \"aws\", service: \"AmazonRDS\", region: \"ap-south-1\", attributeFilters: [{key: \"instanceType\", value: \"db.t2.small\"},{key: \"databaseEngine\", value: \"Aurora MySQL\"}]}) { prices (filter: {purchaseOption: \"on_demand\"}) { USD} } }
Note databaseEngine has been added, deploymentOption removed and instanceType changed to a type that is supported for Aurora MySQL.
If you want to understand which attributes and filters you can use to query the pricing api, I’d recommend booting a local version of the cloud pricing api and introspecting the db for the information you require.
Hope this helpsfancy-application-28950
05/23/2023, 5:26 AM