RESTful API using AWS API Gateway and Lambda

Pradeep Muniraju
Nov 8 · 2 min read

AWS API Gateway along with Lambda provides infrastructure for setting up server-less RESTful APIs.

I assume that you already have access to AWS Services.

Setting up Python function on AWS Lambda

AWS Lamda supports JAVA8, NodeJS, Python etc. Let’s use Python as example in this article.

It is recommended to define a custom role under IAM-Roles, by providing necessary permissions/access for lambda functions; For SES Access, SNS Access etc.

I have created simple Python lambda function to return response in JSON format.

Python function on AWS Lambda

Setting up API on AWS API Gateway

Create API and Resource

Create new Resource Or end point
Create GET Method and configure Lambda function

Deploy API , copy endpoint URL and execute using postman

Execution of API end point using Postman
Pradeep Muniraju

Written by

Full stack Developer Java (Spring, Hibernate), Restful API, Angular, JQuery

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade