Cyclenerd / google-cloud-pricing-cost-calculator

💸 Calculate estimated monthly costs of Google Cloud Platform products and resources via YAML files and CLI program (Linux, macOS, Windows)
https://gcloud-compute.com/gcosts.html
Apache License 2.0
126 stars 21 forks source link

Feature request: spot price, flexible CUD #55

Open Jonathanliu92251 opened 1 year ago

Jonathanliu92251 commented 1 year ago

Currently, the calculator can't provide compute offerings' spot and flexible CUD price which are important price types besides hour, month, cud-1y, cud-3y.

samlhuillier commented 1 year ago

I would love this as well!

Jonathanliu92251 commented 1 year ago

非常感谢,我已经收到您刚发的邮件。Got it, thanks.

Cyclenerd commented 1 year ago

Spot VMs are now supported: https://github.com/Cyclenerd/google-cloud-pricing-cost-calculator/tree/master/usage#resources

Can you map the flexible CUDs with the discount?

Jonathanliu92251 commented 1 year ago

非常感谢,我已经收到您刚发的邮件。Got it, thanks.

Jonathanliu92251 commented 1 year ago

The Flexible CUDs, I've not found the SKU mapping, but it seems like this:

Source: https://cloud.google.com/compute/docs/instances/committed-use-discounts-overview#spend_based

Cyclenerd commented 7 months ago

If it is simply a discount add it as a discount in the YAML.