incalculable-diamond-5088
10/25/2019, 3:14 PMtranscriptionJobs.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:
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
white-balloon-205
incalculable-diamond-5088
10/25/2019, 3:58 PM