#✅ - Unable to deploy Lambda using Knex

3 messages · Page 1 of 1 (latest)

sharp remnant
#

Hello, I want to deploy a lambda function that uses Knex to connect to a mssql RDS server, and when trying to deploy using sandbox, I get the error as denoted here: https://stackoverflow.com/questions/77131329/when-synth-or-deploy-with-aws-cdk-getting-bundling-error-related-to-knex/77147118#77147118

While it seems that the solution is to add an external (modules or deps config) I do not know where nor how to add it. I cannot find any documentation around this.

Any help would be greatly appreciated!

For reference:

amplify/
  functions/
    say-hello/
      handler.ts
      resource.ts
  package.json

where package.json contains the dep of knex and mssql.

silk lance
wide juncoBOT
#

✅ - Unable to deploy Lambda using Knex