Below is a basic Lambda function with a slight modified response body (includes my first name instead of 'Lambda')
exports.handler = async (event) => {
// TODO implement
const response = {
statusCode: 200,
body: JSON.stringify('Hello from Isaiah!'),
};
return response;
};
Despite this, the response obj looks like
{
"statusCode": 200,
"body": "\"Hello from Lambda!\""
}
I will also say that console logging doesn't come up in cloud watch either. Why is this SO?