DEV Community

Said Olano
Said Olano

Posted on

How to generate an Api Gateway on AWS

Go to AWS API Gateway and select "HTTP API" as type:
Image description

Then, provide a name:

Image description

Let's suppose we are going to be on the "development" environment, so let's call our "stage" with this name:

Image description

On this page, create a "route". This lets us to link a URL with an endpoint resource, next screens will clarify some help on this elements:

Image description

Go to integration on the left side and "add a new integration":

Image description

Define your integration and the picture says:

Image description

Then, deploy your last created integration:

Image description

This is the next window:

Image description

If you want to test the Api Gateway, go to this page and add at the end of the url the "/posts"

Image description

You will get something like this:

Image description

Top comments (0)