From the course: Hands-On Development in AWS

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Creation from template

Creation from template

- Recall from the "Understanding API Gateway" lesson that we can deploy a Swagger template in order to create an API within the API Gateway service. In this demonstration, I do have a Swagger file already created, and we are going to deploy an API Gateway API, using that Swagger file. In this directory, API_Gateway/1_API_Gateway_From_Template. I have this JSON ExampleAPI-default-swagger. Let's cat that file, and grab the contents of our Swagger API. And we will go into the API Gateway Service and we're going to Build a REST API, and I will import it from Swagger. Import from Swagger, Paste, or we could select the Swagger file. Endpoint will be regional and import. And here's our API, just up and running that quick. It is, however, not deployed yet, but let's run through our resources over here. Remember, we have resources. With those resources, we have Methods associated. So on the root resource we have the ANY method. ANY method within 0.2, some sort of integration. We need a Mock…

Contents