I am just trying basic list all my buckets, but its not firing, any idea what i might be doing wrong?
'use strict';
var AWS = require('aws-sdk');
var s3 = new AWS.S3();
module.exports.hello = async (event, context) => {
// console.log("hi yall");
// return "hello";
var params = {};
s3.listBuckets(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
};
return value is null and the following is my log output
START RequestId: 827acca9-3e91-405d-a031-7fac249284a0 Version: $LATEST END RequestId: 827acca9-3e91-405d-a031-7fac249284a0 REPORT RequestId: 827acca9-3e91-405d-a031-7fac249284a0 Duration: 45.66 ms Billed Duration: 100 ms Memory Size: 1024 MB Max Memory Used: 31 MB