"No one is harder on a talented person than the person themselves" - Linda Wilkinson ; "Trust your guts and don't follow the herd" ; "Validate direction not destination" ;

January 12, 2023

AWS Lambda Basic Examples

 

An example method for parameter handling








from __future__ import division
import json
def lambda_handler(event, context):
number1 = event['param1']
number2 = event['param2']
number3 = event['param3']
sum = number1 + number2 + number3
return {
"Number1": number1,
"Number2": number2,
"Number3": number3,
"Sum": sum
}
view raw AWSLambda.py hosted with ❤ by GitHub

{
"param1":40,
"param2":20,
"param3":40
}
view raw TestCode hosted with ❤ by GitHub

Keep Exploring!!!

No comments: