https://pulumi.com logo
#general
Title
# general
i

incalculable-diamond-5088

10/25/2019, 3:14 PM
Trying to create a lambda for handling S3 object creation:
Copy code
transcriptionJobs.bucket.onObjectCreated('publish', async ev => {
  const s3Client = new aws.sdk.S3()
  const kinesisCliet = new aws.sdk.Kinesis()
  for (const { s3: { bucket, object } } of ev.Records || []) {
    console.log({ bucket, object })
  }
})
and getting an error:
Copy code
Error: failed to register new resource publish [aws:lambda/function:Function]: 2 UNKNOWN: failed to compute asset hash: asset path 'node_modules/@lemonade/infra-common' is a directory; try using an archive
w

white-balloon-205

10/25/2019, 3:27 PM
Could you open an issue for this? Are you doing any customization of what paths get included in the Lambda?
i

incalculable-diamond-5088

10/25/2019, 3:58 PM
nope. No customizations. Can I configure it?