"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?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠