Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Lambda - How to change the handler value

Tags:

aws-lambda

Just started learning how to use AWS Lambda to put my Python codes up and I've come across an issue that is making me question my sanity. In all videos, tutorials, and forums on the subject, people seem to have an entry field to modify the name of the lambda handler. This option appears nowhere on my lambda configuration page. My code does run if I use the default naming of a "lambda_function" file and a "lambda_handler" main function inside it, but nowhere do I see an option to specify my own names.

The reason I want to specify my own names is that I am trying to be able to import user-created modules and it seems the only way to do that is to modify the handler to specify a subfolder as documented here (just putting from modulename import function, class or whatever in the main handler_function file does not appear to work.

Thanks all for all the help !!

like image 735
r_A_r Avatar asked Jul 14 '26 02:07

r_A_r


1 Answers

You can change your lambda handler name.

Configuration -> Basic setting -> Handler info

You can find below Tags

See this screenshot : enter image description here

For latest update remove basic setting of lambda so follow this :

  1. Click on layer as show below in image
  2. Check Run time setting and edit it.

enter image description here enter image description here

like image 70
aviboy2006 Avatar answered Jul 17 '26 16:07

aviboy2006



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!