mercredi 8 février 2017

s3 bucket file access through python lambda function

Vote count: 0

I have a s3 bucket with a text file(ex- testSample.txt) and want to access that file using python lambda function and find a string in that text file...

function(callback){
console.log(‘Getting file from s3..’);
s3.getObject({Bucket: bucket, key: file}, function(err, data) {
if(err) console.log(err, err.stack);
if(!err) {
    code= data.Body.toString(‘utf8’);
    callback(null);
}

asked 28 secs ago

Let's block ads! (Why?)



s3 bucket file access through python lambda function

Aucun commentaire:

Enregistrer un commentaire