Create your first lambda function
We will create a Lambda Function using Lambda console.






Last updated
We will create a Lambda Function using Lambda console.






Last updated
# define function handler with parameters "event" and "context"
# for details, please check https://docs.aws.amazon.com/lambda/latest/dg/python-programming-model-handler-types.html
def sum(event, context):
a = float(event["a"])
b = float(event["b"])
c = a + b
return {
"c":c
}