# Python Lambda handler in sub directory

**URL:** <https://forum.serverless.com/t/python-lambda-handler-in-sub-directory/9534>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [October 6, 2019, 10:39pm UTC](https://forum.serverless.com/t/python-lambda-handler-in-sub-directory/9534 "2019-10-06T22:39:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ycarel](https://avatars.discourse-cdn.com/v4/letter/y/278dde/32.png) [@ycarel](https://forum.serverless.com/u/ycarel)\
**Post date:** [October 6, 2019, 10:39pm UTC](https://forum.serverless.com/t/python-lambda-handler-in-sub-directory/9534/1 "2019-10-06T22:39:46Z")

</div>

I’m trying to define multiple Lambdas in one serverless.yml to be used in a Step Functions state machine.  
To keep things organized each Lambda will reside in its own sub folder.  
I cannot figure out what is the right Handler definition to use in the function call.  
I tried using either a / or . after the directory name, but I keep getting a Module or function not found from Lambda.  
I tried GetNextRecord/GetNextRecord.lambda\_handler.  
I also tried GetNextRecord.GetNextRecord.lambda\_handler.  
Look at the picture for the file tree.  
Thanks ![LambdaInDirectory](https://canada1.discourse-cdn.com/flex036/uploads/serverless/original/2X/0/0ad4e3056d7e307d2043477184eb2f13a676d594.png)

---

<div class="post-metadata">

**Author:** ![buggy](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/buggy/32/177_2.png) [@buggy](https://forum.serverless.com/u/buggy)\
**Post date:** [October 14, 2019, 9:15am UTC](https://forum.serverless.com/t/python-lambda-handler-in-sub-directory/9534/2 "2019-10-14T09:15:15Z")

</div>

File paths and names are usually case sensitive so they should be `getNextRecord/getNextRecord.lambda_handler`
