We Made This (Community)
This space is dedicated to highlight our awesome community content featuring Powertools for AWS Lambda (Python) 🙏!
Connect¶
Join us on Discord to connect with the Powertools for AWS Lambda (Python) community 👋. Ask questions, learn from each other, contribute, hang out with key contributors, and more!
Blog posts¶
AWS Lambda Cookbook — Following best practices with Powertools for AWS Lambda¶
Author: Ran Isenberg
A collection of articles explaining in detail how Powertools for AWS Lambda helps with a Serverless adoption strategy and its challenges.
-
Serverless API Idempotency with AWS Powertools for AWS Lambda and CDK
-
Effective Amazon SQS Batch Handling with Powertools for AWS Lambda (Python)
-
Best practices for accelerating development with serverless blueprints
-
Build a Chatbot with Amazon Bedrock: Automate API Calls Using Powertools for AWS Lambda and CDK
Making all your APIs idempotent¶
Author: Michael Walmsley
This article dives into what idempotency means for APIs, their use cases, and how to implement them.
Deep dive on Powertools for AWS Lambda Idempotency feature¶
Author: Michael Walmsley
This article describes how to best calculate your idempotency token, implementation details, and how to handle idempotency in RESTful APIs.
Developing AWS Lambda functions with Powertools for AWS Lambda¶
Author: Stephan Huber
This article walks through how to add Powertools to an existing project, covers Tracer, Logger, Metrics, and JSON Schema Validation.
Speed-up event-driven projects¶
Author: Joris Conijn
This article walks through a sample AWS EventBridge cookiecutter template presented at the AWS Community Day Netherlands 2022.
Implementing Feature Flags with AWS AppConfig and Powertools for AWS Lambda¶
Author: Ran Isenberg
This article walks through how CyberArk uses Powertools to implement Feature Flags with AWS AppConfig
Designing for Idempotency¶
Author: Valentin Dreismann
This article outlines the importance of idempotency, key considerations and trade-offs when implementing in your systems.
Implementing Idempotency in Serverless Architectures¶
Author: Seongwoo Choi
This blog post focuses on the importance of idempotency in distributed services and explores streamlined idempotent request flows. It provides guidance on idempotency tests using duplicate requests.
Creating a serverless API using Powertools for AWS Lambda and AWS CDK¶
This blog post showcases how to use AWS CDK and Powertools for AWS Lambda, along with Amazon API Gateway and AWS Lambda, to effortlessly deploy scalable infrastructure with just a few lines of code.
Author: Thomas Taylor
Creating a serverless API using Powertools for AWS Lambda and CDK
Boost App Engagement with AWS CloudWatch Metrics & Powertools for AWS¶
This article will guide you through personalizing observability by integrating CloudWatch metrics with Powertools for AWS Lambda into mobile push notifications, a strategy that significantly enhances mobile app engagement
Author: Nathan Hanks
Creating a serverless API using Powertools for AWS Lambda and CDK
Streaming data with AWS Lambda & Powertools for AWS Lambda¶
This article will walk you through using Powertools for AWS Lambda to optimize your Lambda function when streaming large files from S3.
Author: Tom Reid
Streaming data with AWS Lambda & Powertools for AWS Lambda
Videos¶
Building a resilient input handling with Parser¶
Author: Ran Isenberg
When building applications with AWS Lambda it is critical to verify the data structure and validate the input due to the multiple different sources that can trigger them. In this session Ran Isenberg (CyberArk) will present one of the interesting features of Powertools for AWS Lambda for python: the parser.
In this session you will learn how to increase code quality, extensibility and testability, boost you productivity and ship rock solid apps to production.
Talk DEV to me | Feature Flags with Powertools for AWS Lambda¶
Author: Ran Isenberg
A deep dive in the Feature Flags feature along with tips and tricks.
Level Up Your CI/CD With Smart AWS Feature Flags¶
Author: Ran Isenberg
Feature flags can improve your CI/CD process by enabling capabilities otherwise not possible, thus making them an enabler of DevOps and a crucial part of continuous integration. Partial rollouts, A/B testing, and the ability to quickly change a configuration without redeploying code are advantages you gain by using features flags.
In this talk, you will learn the added value of using feature flags as part of your CI/CD process and how Powertools for AWS Lambda can help with that.
AWS re:invent 2023 - OPN305 - The Pragmatic Serverless Python Developer¶
Author: Heitor Lessa & Ran Isenberg
Are you developing AWS Lambda functions with Python? Always looking for tools to make you more productive? What if you could hear directly from practitioners?
This session covers an opinionated approach to Python project setup, testing, profiling, deployments, and operations. Learn about many open source tools, including Powertools for AWS Lambda—a toolkit that can help you implement serverless best practices and increase developer velocity.
Join to discover tools and patterns for effective serverless development with Python. To maximize your learning experience, the session includes a sample application that implements what’s described.
Workshops¶
Introduction to Powertools for AWS Lambda¶
Author: Michael Walmsley
This repo contains documentation for a live coding workshop for the AWS Programming and Tools Meetup in Melbourne. The workshop will start with the SAM Cli "Hello World" example API project.
Throughout the labs we will introduce each of the Powertools for AWS Lambda Core utilities to showcase how simple they are to use and adopt for all your projects, and how powerful they are at bringing you closer to the Well Architected Serverless Lens.
Walk-through video
Sample projects¶
Complete Lambda Handler Cookbook¶
Author: Ran Isenberg
This repository provides a working, deployable, open source based, AWS Lambda handler and AWS CDK Python code.
This handler embodies Serverless best practices and has all the bells and whistles for a proper production ready handler. It uses many of the Powertools for AWS Lambda utilities for Python.
github.com/ran-isenberg/aws-lambda-handler-cookbook
Author: Ran Isenberg & Heitor Lessa
This project covers an opinionated approach to Python project setup, testing, profiling, deployments, and operations. Learn about many open source tools, including Powertools for AWS Lambda—a toolkit that can help you implement serverless best practices and increase developer velocity.
It is based on the AWS Lambda handler cookbook project and served as the examples for the AWS re:invent 2023 session: OPN305 - The pragmatic serverless python developer.
https://github.com/ran-isenberg/serverless-python-demo
Serverless Transactional Message App¶
Author: Santiago Garcia Arango
This repository contains a well documented example of a Transactional Messages App that illustrates how to use Powertools for AWS Lambda to process SQS messages in batches (with IaC on top of CDK).
It uses Powertools for AWS Lambda Logger, Tracing, DataClasses and includes unit tests.