You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use --inventory since my bucket have around ~22800 objects and doing just regular --s3 --bucket name --inventory --output name.html only generate up to 1000 objects (can this be overridden by the way? Since aws s3api list-object-versions can show all of the objects), but upon issuing ./dir_sizer.py --s3 --bucket 90poe-athens-go-mod-proxy --inventory --output ~/s3-cost/90poe-athens-go-mod-proxy.html I'm greeted with:
Using S3 Inventory report "test-inventory" generated 2022-08-25 03:00:00...
Scanning, gathered 1000 totaling 175.90 MiB...Traceback (most recent call last):
File "/Users/alexk/src/dir_sizer/./dir_sizer.py", line 264, in <module>
main()
File "/Users/alexk/src/dir_sizer/./dir_sizer.py", line 190, in main
for filename, size in load_files(opts, abstraction):
File "/Users/alexk/src/dir_sizer/./dir_sizer.py", line 256, in load_files
for filename, size in abstraction.scan_folder(opts):
File "/Users/alexk/src/dir_sizer/s3_abstraction.py", line 310, in scan_folder
for i, cur in enumerate(s3_list_objects(msg, opts, s3)):
File "/Users/alexk/src/dir_sizer/s3_abstraction.py", line 274, in s3_list_objects
'Size': int(row['Size']),
ValueError: invalid literal for int() with base 10: ''
What am I doing wrong here?
Thanks for the awesome project otherwise!
The text was updated successfully, but these errors were encountered:
theodrim
changed the title
Does --inventory require some specific keys to be present?
Does --inventory require some specific metadata fields to be present?
Aug 26, 2022
I'm trying to use
--inventory
since my bucket have around ~22800 objects and doing just regular--s3 --bucket name --inventory --output name.html
only generate up to 1000 objects (can this be overridden by the way? Sinceaws s3api list-object-versions
can show all of the objects), but upon issuing./dir_sizer.py --s3 --bucket 90poe-athens-go-mod-proxy --inventory --output ~/s3-cost/90poe-athens-go-mod-proxy.html
I'm greeted with:What am I doing wrong here?
Thanks for the awesome project otherwise!
The text was updated successfully, but these errors were encountered: