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
s3 bucket file access through python lambda function
Aucun commentaire:
Enregistrer un commentaire