awslabs / amplify-video

An open source Category Plugin for the AWS Amplify-CLI that makes it easy to deploy live and file based streaming video services and integrate them into your Amplify applications.
https://www.npmjs.com/package/amplify-category-video
Apache License 2.0
267 stars 56 forks source link

index.handler is undefined or not exported (CF TokenGen lambda) #246

Closed nathanagez closed 3 years ago

nathanagez commented 3 years ago

Describe the bug When the TokenGen lambda is trigger, the following error appears: index.handler is undefined or not exported

Expected behavior Should generate the policy for CloudFront signed urls

Additional context Since the integration of the tests we added a module.exports declaration to export other functions in order to test them, which resulted in the override of the exports.handler declaration.