DevOps in the Cloud

Where DevOps Meets the Cloud—Insights, Best Practices, and More.

Automating the creation of S3 Incomplete Multipart Upload Lifecycle Rules to Optimize Cost in AWS Using an Event-driven Architecture

This post expands on the previous were I discussed how apply multipart upload (MPU) lifecycle rules to delete lingering parts of failed uploads that do consume space and cost you money.


Automating the creation of S3 Incomplete Multipart Upload Lifecycle Rules to Optimize Cost in AWS

This post will go over how you can use AWS Python SDK (Boto3) to scan and get all s3 bucket in an account, check its lifecycle policies, and create a lifecycle policy to delete incomplete multipart uploads if no lifecycle policy to do so exists.