proud-tiger-5743
05/07/2019, 12:31 AMconst ingestFunction = new aws.lambda.CallbackFunction("ingestProcessor", {
role: lambdaRole,
callback: async event => {
const AWS = require("aws-sdk");
const s3 = new AWS.S3({ apiVersion: "2006-03-01" });
s3.listBuckets((err, data) => {
console.log(data.Buckets);
});
}
});
It doesn't log anything - I saw this example - https://github.com/pulumi/examples/blob/master/aws-ts-apigateway/index.ts#L24 - and thought you could reference the SDK that way...but maybe I misunderstood that piecewhite-balloon-205