Create and Deploy a REST API with Amazon API Gateway
Build a REST API using API Gateway with Lambda proxy integration, configure CORS, deploy to a stage, and test endpoints with curl.

Lab overview
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. REST APIs in API Gateway offer full API management features, including API keys, throttling, and usage plans.
In this lab, you will build a REST API from scratch using Amazon API Gateway with AWS Lambda proxy integration. You will create API resources and methods, enable Cross-Origin Resource Sharing (CORS) to support browser-based clients, deploy the API to a stage, and test your endpoints using curl from the command line.
By the end of this lab, you will understand the end-to-end workflow of creating and deploying a REST API with API Gateway, including how resources map to URL paths, how methods define allowed HTTP operations, and how stages enable versioned deployments.
Objectives
Upon completion of this intermediate level lab, you will be able to:
- Create a REST API in Amazon API Gateway with resources and methods
- Configure Lambda proxy integration to connect API methods to a backend function
- Enable CORS on API Gateway resources to allow cross-origin requests
- Deploy an API to a stage and test endpoints using curl
Who is this lab for?
This lab is designed for:
- Cloud engineers learning to build serverless APIs on AWS
- Solutions architects preparing for the AWS SAA-C03 certification
- Developers who want hands-on experience with API Gateway REST APIs
Verified against your live environment
An automated validation engine inspects your actual resources and configurations as you work. Completion means the task was performed — not multiple choice, real-world proficiency.
More labs like this
Deploy Amazon EC2 Instance in AWS Cloud
Deploy Amazon EC2 Instance in AWS Cloud in this hands-on lab.
Connect Privately to Amazon S3 with a VPC Gateway Endpoint
Reach S3 from an isolated subnet via a free gateway endpoint, then lock buckets to that endpoint with policies.
Terraform Complex Types and Dynamic Expressions on AWS
Define complex variable types, use for_each and count for resource iteration, apply splat expressions and dynamic blocks on AWS with Terraform.
Related reading
Environment
Every lab includes
- Real environment, pre-credentialed
- Automated checks on every step
- Isolated sandbox, auto cleanup
- AI-recommended next steps
Lab curriculum
- 01
Signing into AWS Console
- 02
Create REST API with Resources and Lambda Integration
1 automated check
- 03
Enable CORS on API Gateway Resources
1 automated check
- 04
Deploy API to Stage and Test with curl
1 automated check
Not the lab you were looking for?
Browse 150+ hands-on labs across AWS, Azure, Kubernetes, Docker, and cloud security.