AWS Lambda Function Urls – How to create an api
Hey guys
In this video I show you how to create a simple serverless Rest API using the new feature for AWS Lambda. AWS Lambda Function Urls.
I do this by converting an express API that performs simple in course search functionality. I first show you a sample app I’ve built, then I show you how to create and configure your Lambda function so that you can access it publicly.
I then quickly rewrite the express code to lambda Node code that will accept a GET request with some query string values, and generates a JSON response.
Finally I show you how to configure CORS at a very basic level.
source