"Unable to import module 'lambda_function': No module named 'sshtunnel'"

0

Test Event Name test

Response { "errorMessage": "Unable to import module 'lambda_function': No module named 'sshtunnel'", "errorType": "Runtime.ImportModuleError", "requestId": "075b5d0d-993c-44df-9e2d-50f7025872f6", "stackTrace": [] }

Function Logs START RequestId: 075b5d0d-993c-44df-9e2d-50f7025872f6 Version: $LATEST [ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'sshtunnel' Traceback (most recent call last):END RequestId: 075b5d0d-993c-44df-9e2d-50f7025872f6 REPORT RequestId: 075b5d0d-993c-44df-9e2d-50f7025872f6 Duration: 1.11 ms Billed Duration: 2 ms Memory Size: 128 MB Max Memory Used: 37 MB Init Duration: 110.73 ms

Request ID 075b5d0d-993c-44df-9e2d-50f7025872f6

已提问 2 年前1990 查看次数
1 回答
0

Your deployment package should include all the needed dependencies. If you use SAM for example, just use sam build and sam deploy.

profile pictureAWS
专家
Uri
已回答 2 年前
  • I have followed the AWS specified method ,but not working ,Not satified with the service

  • Did you include sshtunnel in the requirements file?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则