The event object is missing body and isBase64Encoded properties. But they should be there according to the docs The full structure is the following:
{
"type": "REQUEST",
"methodArn": "arn:aws:execute-api:us-west-2:*******:*******/development/POST/auth/login",
"resource": "/{proxy+}",
"path": "/auth/login",
"httpMethod": "ANY",
"headers": {
.....
},
"queryStringParameters": {
"test": "123"
},
"pathParameters": {
"proxy": "auth/login"
},
"stageVariables": {
"lambdaVersion": "development"
},
"requestContext": {
"path": "/development/auth/login",
"accountId": "*****",
"resourceId": "f8wvnk",
"stage": "development",
"requestId": "****",
"identity": {
....
},
"resourcePath": "/{proxy+}",
"httpMethod": "POST",
"apiId": "********"
}
}
Does anyone have the similar issue?