Member-only story
AWS HTTP APIs is GA. Here are my favorite features!
HTTP APIs is cheap, fast, and now GA!
The required Lambda Response format is now much simpler!
Previously, your Lambda function was required to return a payload that included the following JSON attributes. This is called the Lambda Response Format 1.0:
Now, you can simply return the body of your response. API Gateway will assume the response should be a status of 200 OK and non base64 encoded. For example, you can simply return:
"Hello from Lambda!"
or
{ message: "Hello from Lambda!" }
You can create a $default Stage AND Route
A default stage and route means you can serve API requests at the root of your API. For example: https://api.myapihere.com/.
This is easy to do, just create a route and specify $default
as the route name: