Support Documents

Build API Gateway with path parameter and Query string parameter

Lab Details

  1. This lab walks you through the steps to create an API Gateway with path and query string parameter and integrate it to Lambda function.

  2. You will practice using Amazon API Gateway.

  3. Duration: 45 minutes.

  4. AWS Region: US East (N. Virginia) us-east-1.


Amazon API Gateway

  • Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale. 

  • APIs act as the front door for applications to access data, business logic, or functionality from your backend services. 

  • API Gateway handles all the tasks involved in accepting and processing up to hundreds of thousands of concurrent API calls, including traffic management, CORS support, authorization and access control, throttling, monitoring, and API version management. 

  • Using API Gateway, you can create RESTful APIs and WebSocket APIs that enable real-time two-way communication applications. API Gateway supports containerized and serverless workloads, as well as web applications. 

  • AWS Lambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume.

  • With Lambda, you can run code for virtually any type of application or backend service - all with zero administration. Just upload your code and Lambda takes care of everything required to run and scale your code with high availability. You can set up your code to automatically trigger from other AWS services or call it directly from any web or mobile app.     

Architecture Diagram

Tasks Details

  1. Log into the AWS Management Console.

  2. Create a Lambda Function.

  3. Create a new API Gateway.

  4. Create a Resource with a path parameter.

  5. Create a Method.

  6. Add a query string parameter.

  7. Test the API

  8. Validation of the lab