In this episode, we discuss using AWS Lambda Powertools for Python to build serverless REST APIs with AWS Lambda. We cover the benefits of using Powertools for routing, validation, OpenAPI support, and more. Powertools provides an excellent framework for building APIs while maintaining Lambda best practices.
💰 SPONSOR 💰
AWS Bites is proudly brought to you by fourTheorem, an AWS Consulting Partner dedicated to helping you and your team deliver successful projects on AWS. With a sharp focus on performance and cost optimization, we’re here to ensure your cloud journey is smooth and efficient. If you’re searching for a trusted partner to bring your AWS projects to life, visit us at https://fourTheorem.com and let’s work together to make your vision a reality!
🔖 Chapters:
00:00 Introduction and overview of popular Python web frameworks
02:49 Overview of AWS Lambda Powertools for Python
07:44 Key features needed in an API framework
14:20 Validation and parsing with Pydantic
16:51 Using Powertools with monolithic vs. single-purpose Lambdas
20:32 Local development with PowerTools
22:11 Status of REST API support in other Powertools languages
In this episode, we mentioned the following resources:
1. AWS Bites 41. How can Middy make writing Lambda functions easier? - https://awsbites.com/41-how-can-middy-make-writing-lambda-functions-easier
2 .AWS Bites 120. Lambda Best Practices - https://awsbites.com/120-lambda-best-practices/
3. REST API - Powertools for AWS Lambda (Python) - https://docs.powertools.aws.dev/lambda/python/latest/core/event_handler/api_gateway/
4. Hono - https://hono.dev/
5. Fastify - https://fastify.dev/
6. Axum - https://github.com/tokio-rs/axum
7. FastAPI - https://fastapi.tiangolo.com/
You can listen to AWS Bites wherever you get your podcasts:
- Apple Podcasts: https://podcasts.apple.com/us/podcast/aws-bites/id1585489017
- Spotify: https://open.spotify.com/show/3Lh7PzqBFV6yt5WsTAmO5q
- Google: https://podcasts.google.com/feed/aHR0cHM6Ly9hbmNob3IuZm0vcy82YTMzMTJhMC9wb2RjYXN0L3Jzcw==
- Breaker: https://www.breaker.audio/aws-bites
- RSS: https://anchor.fm/s/6a3312a0/podcast/rss
Do you have any AWS questions you would like us to address?
Leave a comment here or connect with us on BlueSky or LinkedIn:
- https://bsky.app/profile/eoin.sh | https://www.linkedin.com/in/eoins/
- https://bsky.app/profile/loige.co | https://www.linkedin.com/in/lucianomammino/
#aws #lambda #powertools #api #rest