Nodejs AWS Developer

В роботі Опубліковано %project.relative_time Оплачується при отриманні
В роботі Оплачується при отриманні

Hi There

I have a site that does uploads to S3 via a nodejs micro service and I’m needing the same for a zipped folder download on the other side.

I did a bit of code myself but I’m not fluent in this code so I’m battling to deploy and testing this on 2500 files (5.6gigs) fails locally. Smaller batches was working nicely. So I probably need help getting that sorted too.

Here is my attempt. Is this something you can help with? How much would it cost to get this sorted and deployed?

Look forward to your reply.

// ZIP files from S3

const fs = require('fs');

const join = require('path').join

const config = require('config');

const AWS = require('aws-sdk');

const s3Zip = require('s3-zip');

const XmlStream = require('xml-stream');

// the four variables I’ll need to input to control what gets downloaded and the name of the zipped folder.

var folderID = '11C85989-4B88-455A-8E8F-BBF55B7E1F0B';

var galleryID = '537';

var photographer = 'Photo Centz';

var galleryName = 'FOOTLOOSE 2020';

const bucket = 'resumeable-uploads';

const folder = folderID + '/' + galleryID;

var photographerPath = [login to view URL](" ", "-");

var galleryNamePath = [login to view URL](" ", "-");

const accessKeyId = [login to view URL]('[login to view URL]');

const secretAccessKey = [login to view URL]('[login to view URL]');

const region = [login to view URL]('[login to view URL]');

[login to view URL]({

accessKeyId,

secretAccessKey,

region

});

const s3 = new [login to view URL]({ region: region });

const params = {

Bucket: bucket,

Prefix: folder

}

const filesArray = [];

const files = [login to view URL](params).createReadStream();

const xml = new XmlStream(files);

[login to view URL]('Key')

[login to view URL]('endElement: Key', function(item) {

[login to view URL](item['$text'].substr([login to view URL]));

})

xml

.on('end', function() {

zip(filesArray);

})

function zip(files) {

[login to view URL](files);

const output = [login to view URL](join(__dirname, galleryNamePath + '_' + photographerPath + '.zip'));

s3Zip

.archive({ region: region, bucket: bucket, debug: true, preserveFolderStructure: false }, folder, files)

.pipe(output);

}

[login to view URL] = zip;

Amazon Web Services Node.js

ID Проекту: #25860178

Про проект

2 заявок(-ки) Дистанційний проект Остання активність 3 роки(ів) тому