AWS SAM Local Debug Server.
yarn add aws-sam-server
$ brew upgrade aws-sam-cli
$ sam init
import { createServer } from 'aws-sam-server';
const port = 3456;
const fullpath = `${__dirname}/template.yaml`;
const server = await createServer(fullpath);
const listen = promisify(server.listen.bind(server));
await listen(port);
curl http://localhost:3456/hello