CloudAcademy

Build RESTful Microservices with AWS Lambda and API Gateway

The hands-on lab is part of these learning paths

Serverless Computing on AWS for Developers

course-steps 10 certification 1 lab-steps 8

Get Started Building Cloud Solutions

course-steps 14 certification 1 lab-steps 1 quiz-steps 1

Getting Started with Serverless Computing on AWS

course-steps 6 certification 1 lab-steps 9

Lab Steps

keyboard_tab
lock
Logging in to the Amazon Web Services Console
lock
RESTful background
lock
Define new API Gateway Resources
lock
AWS Lambda Functions setup
lock
API Gateway backend configuration
lock
Best practices for Versions, Aliases and Stages
lock
API Keys and Usage Plans
lock
Enable CORS on API Gateway Resources
lock
API Gateway Caching and Throttling
lock
Clean up API Resources and Lambda Functions

Ready for the real environment experience?

DifficultyIntermediate
Duration1h 30m
Students646

Description

How to define Serverless APIs backed by AWS Lambda

Amazon API Gateway allows you to design RESTful interfaces and connect them with your favorite backend. You can design your own resources structure, add dynamic routing parameters, and develop custom authorizations logic. Each API resource can be configured independently, while each stage can have specific cache, throttling, and logging configurations.

This approach is particularly useful when you consider that each request and response can be attached to a custom mapping template, in order to perform custom data manipulation or improve API backward compatibility.

We will see how to define a simple API and how to connect it to AWS Lambda. This provides a nice way to obtain a scalable backend for modern web applications or mobile apps. We will configure custom stages, protect resources with an API key, and explain how to best connect API Gateway stages with AWS Lambda versions and aliases.

Lastly, we will learn about AWS Lambda's basic configuration, monitoring, and versioning.

 

Do you have questions about this Lab? Contact our cloud experts by sending an email to support@cloudacademy.com.

About the Author

Alex is an Italian Software Engineer with a great passion for web technologies and music.

He spent the last 5 years building web products and deepening his knowledge on full stack web development and software design, with a main focus on frontend and UX.

Despite being a passionate coder, Alex worked hard on his software and sound engineering background, which provides him the tools to deal with multimedia, signal processing, machine learning, AI and many interesting topics related to math and data science.

Indeed, he had the opportunity to study and live in a very young and motivating environment in Bologna and Milan, two of the biggest and oldest Italian Universities. These experiences lead him to work on several projects involving robotics, machine intelligence, music semantic analysis and modern web development.

Alex is currently a Senior Software Engineer at Cloud Academy, a position that gave him the possibility to discover the Cloud world and exploit its potential as a web developer and data scientist.