How do I get a list of my most expensive AWS buckets?
Tony
mod
Is there a query for the Top 10 AWS S3 Buckets by Size and Cost?
0
Best Answer
-
find aws_s3_bucket with bucketSizeBytes!=undefined as bucket return bucket.name, bucket.tag.AccountName, bucket.numberOfObjects, bucket.bucketSizeBytes, bucket.bucketSizeBytes / 1000000000 * 0.023 as monthlyCost, bucket.lifecycleEnabled, bucket.retentionPeriod, bucket.webLink order by bucket.bucketSizeBytes DESC limit 10
1
Answers
-
Nice! Is there a way to also identify the storage class(es) within those buckets?
0 -
We can currently check to see if the S3 lifecycle has been enabled with the following query:
FIND aws_s3_bucket with lifecycleEnabled = true
However, further integration work needs to be completed in order for us to see the lifecycle transitions. I just put in a feature request for this.0
This Month's Leaders
Categories
- 336 All Categories
- Featured Categories
- 7 About the AskJ1 Community
- 11 Product Announcements
- From Mission Control
- 1 Rapid Response
- 3 How J1 Uses J1
- Topics
- 131 Asset Management
- 56 Compliance & Reporting
- 65 Security Operations
- 40 Security Engineering
- 5 Open Source
- 18 News, Careers and More