People are sometimes surprised by their high bills on Google Cloud and AWS, and they may not know ways to reduce the unneeded parts of their expenditure.

One easy way to reduce costs on Google Cloud is to reduce your log retention period. In Google Cloud, navigate to Logging -> Logs Storage -> Edit Bucket -> Retention period and enter a shorter time period. Logs that are older than the retention period will be discarded.

This can save a bunch of money if you don’t need your older logs. On one of my own Cloud Functions projects, this cut down the cost greatly, bringing the cost down by 80%.

Google Cloud Screenshot