AWS Lambda - CodeCommit trigger

Viewed 23

Quick question on Lambda import module error I get.

Case: I have 2 python scripts stored in AWS CodeCommit. The first script (script1) just contains some functions that will be used in the second script (script2), which is the main one and the one that will be triggered with Lambda.

Issue: when I run the script2 in Lambda, this is not able to call the functions stored in the script1, looks like it is not able to find the module script1.py even if this is located in the same CodeCommit repository.

Error: "errorMessage": "No module named ‘script1‘ "

Can somebody help me? Thanks.

0 Answers
Related