Member-only story

AWS HTTP APIs is GA. Here are my favorite features!

George Mao
2 min readMar 20, 2020

--

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:

Default Route

--

--

George Mao
George Mao

Written by George Mao

Head of Specialist Architects @ Google Cloud. I lead a team of experts responsible for helping customers solve their toughest challenges and adopt GCP at scale

No responses yet