When I use lambda console test to test lambda, I found the event I specified in console is different than the event sent from API gateway. The event from API gateway is the complete http request object structure. Below is an example of that.
{ resource: '/screenshot',
path: '/screenshot',
httpMethod: 'POST',
headers: null,
multiValueHeaders: null,
queryStringParameters: null,
multiValueQueryStringParameters: null,
pathParameters: null,
stageVariables: null,
requestContext:
{ path: '/screenshot',
accountId: '286334053171',
resourceId: 'slne19',
stage: 'test-invoke-stage',
domainPrefix: 'testPrefix',
requestId: 'd091e8bf-7948-11e9-951d-3b38e4cc6ad6',
But the event is defined in lambda console is just a JSON object. How can I create a same test event in console to mock the API gateway event?