Can someone post here the sample node js code for creating as a https endpoint instead of lamba code.
Most of these results provide an example of how to put up a REST API. (https://www.google.com/search?q=https+endpoint+node&oq=https+endpoint+node&aqs=chrome..69i57j0l5.3495j0j4&sourceid=chrome&ie=UTF-8#q=rest+endpoint+node) . You'll also need to validate the signature of the incoming request.
Broadly though, we'd advise using Lambda. It really reduces complexity, and can even be placed inside of VPCs if you have existing infrastructure on AWS.
Service simulator JSON 1 Answer