Skip to main content

Command Palette

Search for a command to run...

How to Create a Python HTTP API with AWS API Gateway and Lambda

By Aparna Mantravadi, July 1st, 2024.

Published
1 min read
How to Create a Python HTTP API with AWS API Gateway and Lambda

login the aws console .preferably free-tier

create lambda function with any desired title

write code in python in code session of lambda

go to the api gateway, create routes for get and post for the lambda function , use htttp api deploy.

deploy the aws lambda code and install postman.do the get request with one string parameter (personId). then, do post method in postman we get person id because the post method return the string of personid.

summary :- event handlers ,response processing in the python code are learnt from api usage.