How to create AWS Lambda Function??
- Go in the Services and search for Lambda
- Click on Lambda
- Once we will click on Lambda, we will navigate to following screen

- Author from scratch means we will be writing the code from starting, Use a blueprint is a option where AWS provide various template of function
- Enter the function name and choose the programming language where you want to do the coding.
- Also no need to change the permission.

- Click on Create button.And we will be navigated to new screen.

- We will receive various option present, for instance Test which will test the code snippet that we have written.
- Logs services are attached to the pre-defined services that are present.
- Monitoring tab will help us to know the error count, execution time etc for our Lambda function.
- Function Code section has one major thing to observe, like Handler section where we have to define the file and function that has to be executed first once our Lambda function is triggered.It is because when we design the function, it is not mandatory that only one file and one function is present, it has the chances that multiple function are present, so AWS run must know that which file and the function name has to be triggered.

- Code Entry type is the thing which allow us to either write the code or upload the zip file that has the code.
- Various other setting that are important has to be entered.
- One important entry point is Basic Setting that has the timeout time for the function, As AWS Lambda charges for the time of execution of function, so in this case, it become important to enter the same,
No comments:
Post a Comment