If I change it to this ``` const ingestFunction = ...
# general
p
If I change it to this
Copy code
const 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 piece
w
You can use the AWS SDK like this as well - but the previous issue with mixing async and callback styles is likely the root cause here.