moto icon indicating copy to clipboard operation
moto copied to clipboard

Plans on Cost Explorer's get_cost_and_usage

Open Suzy12 opened this issue 3 years ago • 1 comments

Hello! I am aware Cost Explorer is available now in moto, but only for certain features. So, I have a quick question, are there any plans on mocking Cost Explorer's get_cost_and_usage?

Suzy12 avatar Oct 24 '22 16:10 Suzy12

Hi @Suzy12, there are no plans at the moment, as far as I'm aware.

Would you be interested in creating a PR to tackle this?

bblommers avatar Oct 24 '22 22:10 bblommers

This is now part of moto >= 5.0.3.dev16.

Cost or usage is not tracked by Moto, so this call will return nothing by default. You can configure your own results though, so the API will return whatever data you want. See the documentation here:

http://docs.getmoto.org/en/latest/docs/services/ce.html

bblommers avatar Feb 23 '24 22:02 bblommers