steampipe-plugin-aws
                                
                                 steampipe-plugin-aws copied to clipboard
                                
                                    steampipe-plugin-aws copied to clipboard
                            
                            
                            
                        AWS S3 bucket size
S3 storage is a common source of expenses, and in order to control the cost would be useful to query the size of the S3 bucket and the count of the objects. Also, as the price of S3 storage depends on objects' StorageClass, grouping by the StorageClass would provide even better observation.
@moisei Appreciate using Steampipe!!
Just for reference, the discussion thread from the slack community channel
@moisei One potential way we could get this information is by creating tables to get the daily storage metrics for buckets, which includes the metrics BucketSizeBytes and NumberOfObjects. Would these metrics give you the type of data you're looking for?
We'd need to update how our CloudWatch metric tables can set dimensions (currently they can only pass in one dimension key/value pair, but all of the S3 bucket daily ones need to pass in 2, BucketName, and StorageType), and also need to determine how we can get each resource's identifier, e.g., bucket name, from the list of dimensions.
@cbruno10 up to me, it would be perfectly fine as I am not looking for real-time data.
maybe it is also possible to add AWS Glacier data to this table, as it is another potential source of the expenses
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.'
'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.'
'This issue was closed because it has been stalled for 90 days with no activity.'