"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 年前檢視次數 1991 次
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?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南