skip to Main Content

Amazon web services – How to select the last created object in S3

I have this path in S3: object1/object2/object3/object4/ In Object4/ I have a list of objects, example: directory1/directory2/directory3/directory4/2022-30-09-15h21/ directory1/directory2/directory3/directory4/2023-20-12-12h30/ directory1/directory2/directory3/directory4/2022-31-12-09h34/ directory1/directory2/directory3/directory4/2023-12-08-14h56/ I would like to select the last created directory in directory4/ then I should download all files inside it. I…

VIEW QUESTION

Amazon web services – 'ListBucketsCommand' is not assignable to parameter of type 'Command

using "@aws-sdk/client-s3": "^3.481.0", and keep getting the error at send line let S3_Config = { region: process.env.S3_REGION, credentials: { accessKeyId: process.env.S3_ACCESS_KEY_ID, secretAccessKey: process.env.S3_ACCESS_SECRET_KEY, }, }; const s3_client = new S3Client(S3_Config); const s3_params = { Bucket: process.env.S3_BUCKET_NAME , // required MaxKeys:…

VIEW QUESTION
Back To Top
Search