amazon web services - Testing Python "Hello World" in AWS Lambda -


i apologies first hand if question formatting messed up. noob programmer here

i following steps defined in aws lambda developer guide run hello world code. ref page 44

def my_handler(event, context):     message = 'hello {} {}!'.format(event['first_name'],                                     event['last_name'])     return {         'message' : message }      

test error in aws enter image description here

i believe error code looking events input test event on test page providing 3 key values have no relation code.

testpage enter image description here

make sure test event in aws console provides values program expects. it's passing 3 keys key1, key2, key3 while program expects first_name , last_name

just change test event's values following instead

{     "first_name": "foo",     "last_name": "bar } 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -