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 }
i believe error code looking events input test event on test page providing 3 key values have no relation code.
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
Post a Comment