DEV Community

Cover image for AWS S3 BUCKET OBJECT ANALYTICS
Rakshitha S
Rakshitha S

Posted on

AWS S3 BUCKET OBJECT ANALYTICS

Hey there!
People who use S3 as storage for their projects wants to know about the bucket object's size, type. I came across one situation where my friend has created a lot of dummy files and was added to the bucket which I created. When I opened my aws account, then I gotcha these many files are there so I thought of one solution to view it without logging in(can also be done with login).

Catch

  • Without using Access key and Root key

  • You can specify the Access key and Root key in bot3 call

- I did it without access key and root key cause who shares that credentials 😝😏 right!

Let's get into this!

Language: Python

Image description
Step 1: Learn about boto3 to work with S3 using python

Step 2: Link of Project in Gituhub

Step 3:Download and run the project in any python supported platform.
Note: Run requirements.txt file before running the project at one shot.

Expected Output:

AWS S3 BUCKET OBJECTS SIZE

AWS S3 BUCKET OBEJCTS FILE TYPE

Feel free to optimize this or any inputs!
Reach out to EMAIL ID
Made with ❤️
By Rakshitha S
MCA, BMSCE

Top comments (0)