Amazon Lambda: Create Lambda Function
Objective
Pre-requisites
Steps
Create Lambda Function





Last updated
Was this helpful?





Last updated
Was this helpful?
Was this helpful?
import json
def lambda_handler(event, context):
# TODO implement
if(event["name"] == "kiran"):
return {
'name': 'Kiran',
'phone': '9429020115',
'country': 'India'
}
if(event["name"] == "rose"):
return {
'name': 'Rose',
'phone': '(512) 757-6001',
'country': 'USA'
}
if(event["name"] == "sean"):
return {
'name': 'Sean',
'phone': '(512) 757-6002',
'country': 'UK'
}
if(event["name"] == "Jack"):
return {
'name': 'Jack',
'phone': '(512) 757-7001',
'country': 'Ca'
}
return "Not found"