EC2-Other in Cost Explorer #3252
-
I'm looking for a way to query Cost Explorer for Storage expenses assigned to EC2 instance. In Web console it's called EC2-Other, as far as I understood. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @marekhel thanks for reaching out. Have you tried setting the Value to just "EC2 - Other" ? That seemed to work for me. For more information on filtering with CostExplorer you can refer to this documentation: https://docs.aws.amazon.com/cost-management/latest/userguide/ce-filtering.html Also for reference I'll share a link to the |
Beta Was this translation helpful? Give feedback.
Hi @marekhel thanks for reaching out. Have you tried setting the Value to just "EC2 - Other" ? That seemed to work for me.
For more information on filtering with CostExplorer you can refer to this documentation: https://docs.aws.amazon.com/cost-management/latest/userguide/ce-filtering.html
Also for reference I'll share a link to the
get_cost_and_usage
documentation: https://boto3.amazonaws.com/v1/documentation/api/1.9.42/reference/services/ce.html#CostExplorer.Client.get_cost_and_usage