cycloidio / terracost

Cloud cost estimation for Terraform in your CLI
MIT License
278 stars 29 forks source link

cost: return per-hour cost of resources #35

Closed patrislav closed 3 years ago

patrislav commented 3 years ago

This PR adds a new Cost struct that wraps the Decimal in order to provide Hourly and Monthly methods returning per-hour and per-month cost of a component or resource.

Closes #33

patrislav commented 3 years ago

I assume we do not want any information of yearly no?

Not at the moment, but the Cost struct could be easily extended in the future to have a Yearly method or include info about any discounts, etc.

patrislav commented 3 years ago

Rebased