Leveraging Python to Save KMS costs when using S3

Reducing KMS costs with S3 using Python

Published Jun 30, 2024
If you are using KMS to encrypt objects in S3, then every time the object is being by read an external application, its being de-crypted and then read, this is a simple way to reduce this cost, which I have covered in my blog here. I have used S3 Storage lens to find the most read heavy objects and buckets and leveraged python to report on them.Python code is below which reports on how we can monitor this more effectively, do have a read and share feedback.