"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

posta 2 anni fa1990 visualizzazioni
1 Risposta
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
ESPERTO
Uri
con risposta 2 anni fa
  • I have followed the AWS specified method ,but not working ,Not satified with the service

  • Did you include sshtunnel in the requirements file?

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande