-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
30 lines (23 loc) · 894 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""
This file is the main script of the lambda.
The handler function will be executed every time lambda is triggered.
This Plug & Play script currently contains a dummy code for demonstration
purpose. However, this can be replaced with any code that you wish to run
as AWS Lambda Function.
To convert your custom code into a lambda, just add your modules,
import them and make call to your logic, that has to executed
every time the lambda is triggered, in the handler function.
Author: Pranay Chandekar
"""
def handler(event, context):
"""
This function will be triggerd on every lambda invocation.
:param event: The request that triggered the lambda.
:param context: The context object received along with the request.
:return: The response
"""
return {
"statusCode": 200,
"requestId": context.aws_request_id,
"request": event
}