Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get total size of all buckets with aws s3 ls --summarize #6799

Open
tim-finnigan opened this issue Mar 17, 2022 · 2 comments
Open

Get total size of all buckets with aws s3 ls --summarize #6799

tim-finnigan opened this issue Mar 17, 2022 · 2 comments
Labels
feature-request A feature should be added or improved. p3 This is a minor priority issue s3

Comments

@tim-finnigan
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently when running aws s3 ls --summarize it returns:

[s3-bucket-1]
[s3-bucket-2]
...

Total Objects: 0
   Total Size: 0

Describe the solution you'd like
aws s3 ls --summarize to return the Total Objects and Total Size of all buckets:

[s3-bucket-1] (Total Objects: N | Total Size: N)
[s3-bucket-2] (Total Objects: N | Total Size: N)
...

Total Objects: [Combined Objects]
   Total Size: [Combined Size]

Describe alternatives you've considered
A workaround script could loop through each bucket and parse this info with a command like this:
aws s3 ls my-bucket-name --summarize --recursive --human-readable | tail -2

(^This would be easier if there were a --summary-only option as requested here: #2250)

@tim-finnigan tim-finnigan added feature-request A feature should be added or improved. s3 labels Mar 17, 2022
@Yoshiitaka
Copy link

@tim-finnigan May I try to handle to this Issue? :)

@tim-finnigan
Copy link
Contributor Author

@Yoshiitaka sure! Thanks for offering to work on it. We recently made updates to our contribution process here that could be helpful to review as well.

@tim-finnigan tim-finnigan added the p3 This is a minor priority issue label Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. p3 This is a minor priority issue s3
Projects
None yet
Development

No branches or pull requests

2 participants