A Step by Step Guide to Reduce Your AWS S3 Bill
AWS S3 costs are pretty low. But when you are getting a $500 bill for storage every month, it is worth spending a few hours to bring that down.
Plan to do these steps over a few days instead of at one shot. Since the AWS Cost & Usage Report is not updated in real time, it can take up to 24 hours before you see the impact of your changes.
Which Bucket Is That?
The first step is finding out what is contributing to your bill. S3 costs have quite a few dimensions (API Operation, Usage Type, Tags and so on), but the easiest thing is to categorize your cost by bucket.
If you have a static list of buckets, this is pretty easy - add a name tag to every bucket.
- Go the S3 Management Console
- Go to each bucket
- Switch to the Properties tab
- Scroll to the Tags section
- Edit and Add a Tag with Key name and Value as your bucket name
You can also do the same thing using the AWS CLI and jq. The following script outputs AWS CLI commands that you can run to tag…