dwyl/learn-aws-lambda

Elasticsearch-py package modules not detected in lambda

cjvegi opened this issue · 1 comments

Hi,

I have a function which uses elasticsearch-py package. I am using cloud9 to create a lambda function where I installed elasticsearch package within the project directory using "pip install elasticsearch -t . " When I am trying to run the function Lambda(Local), i am receiving the following error.

image

Project Directory:
image

function:

from elasticsearch import Elasticsearch

def lambda_handler(event, context):
# TODO implement
return ''

Any help on this is highly appreciated.

Realized that the package should be one up above.