Skip to content

Tag: boto3

Get all File from Subfolder Boto3

I have this code to download all the files from a buckets AWS S3 Inside that bucket, I have a folder called “pictures” How can I get the files only in my folder? My try: Answer Inside that bucket, I have a folder called “pictures” How can I get the files only in my folder? You can get …

AWS Lambda Python Boto3 – Item count dynamodb table

I am trying to count the total number of items in the Dynamobd table. Boto3 documenation says item_count attribute. (integer) — The number of items in the specified table. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value. I populated about 10…

Copy a large amount of files in s3 on the same bucket

I got a “directory” on a s3 bucket with 80 TB ~ and I need do copy everything to another directory in the same bucket source = s3://mybucket/abc/process/ destiny = s3://mybucket/cde/process/ I already tried to use aws s3 sync, but worked only for the big files, still left 50 TB to copy. I’m …

S3 appending random string in file name

I have a s3 folder with a csv file stored on it. I’m trying to download the last modified file. I’m using this script to get the last modified file: This code lists my last modified object, the file name is part-00000-40f267f2-38dc-4bab-811c-4c3052fdb1ba-c000.csv and is inside the file_r folder. A…