Back to all articles

Python

54 articles tagged with “Python

How to Build Open Source Software Developers Actually Want to Use
Jan 8, 20269 min read

How to Build Open Source Software Developers Actually Want to Use

Building a successful open-source project goes beyond sharing code — it requires production-grade quality, clear documentation, strong DevEx, and active community engagement. In this guide, learn how to build secure, maintainable, and high-impact open-source projects using GitHub best practices, CI/CD pipelines, contribution templates, and real-world automation. Ideal for both companies and individual developers.

Secrets Manager vs. Parameter Store: Which One Should You Really Use?
Sep 8, 20255 min read

Secrets Manager vs. Parameter Store: Which One Should You Really Use?

Choosing between AWS Secrets Manager and SSM Parameter Store isn’t always straightforward. This guide breaks down the key differences in cost, secret rotation, versioning, encryption, IaC support, and more—helping you decide which service fits your use case. Whether you're managing sensitive credentials or sharing configuration across environments, you'll walk away with a clear, practical recommendation backed by real-world experience.

Serverless MCP on AWS: Lambda vs. Fargate for Agentic AI Workloads
Jul 16, 202516 min read

Serverless MCP on AWS: Lambda vs. Fargate for Agentic AI Workloads

Building agentic AI requires more than prompts—it needs secure, structured access to your systems. This post explores three ways to deploy a production-grade MCP server on AWS: Lambda with Web Adapter, Pure Lambda, and AWS Fargate. Compare performance, cost, observability, and DevEx tradeoffs, and access ready-to-use CDK templates. Ideal for teams bringing agentic AI into real-world applications on AWS.

14 AWS Lambda Security Best Practices to Secure Your Serverless Applications
Jul 9, 202511 min read

14 AWS Lambda Security Best Practices to Secure Your Serverless Applications

AWS Lambda makes it easy to build serverless apps—but security is often an afterthought. This post covers 14 real-world Lambda security best practices, from input validation, secret management, and least-privileged IAM to tenant isolation and safe logging. Backed by years of hands-on experience and aligned with OWASP Serverless Top 10, it includes a downloadable checklist to help you secure your functions from day one.

Catch Bugs Before They Catch You: Observability with CloudWatch Synthetics
May 19, 202510 min read

Catch Bugs Before They Catch You: Observability with CloudWatch Synthetics

Maintaining production systems is hard—bugs happen, and reacting late can cost you. AWS CloudWatch Synthetics offers a proactive way to catch issues before your users do by simulating real user actions. In this post, guest author Tom Nachum from CyberArk shares how his team uses synthetic canaries to monitor critical business flows, detect failures early, and boost reliability. Learn how to implement, schedule, and debug canaries with ease using AWS tools.

I Tried Running an MCP Server on AWS Lambda… Here’s What Happened
May 10, 20256 min read

I Tried Running an MCP Server on AWS Lambda… Here’s What Happened

I attempted to run an MCP server serverlessly on AWS Lambda using FastAPI, FastMCP, and the Lambda Web Adapter. While it technically worked, the developer experience was rough—cold starts were slow, observability was limited, and testing was clunky. Compared to my experience building with Bedrock agents, this felt like a step backward. MCP is promising, but today, running it on Lambda isn’t production-ready. Here’s my full breakdown and thoughts.

Build Serverless WebSockets with AWS AppSync Events and Powertools for AWS Lambda
May 5, 202510 min read

Build Serverless WebSockets with AWS AppSync Events and Powertools for AWS Lambda

In this post, you'll learn how to use AWS Lambda functions as both data sources and event handlers for publish and subscribe actions in AWS AppSync Events. We’ll walk through setting up a namespace, wiring direct Lambda integrations using CDK, and handling real-time events with Powertools for AWS Lambda. This approach gives you full control, observability, and flexibility—all while keeping your WebSocket architecture serverless and scalable.

Stop Building Internal Tools Nobody Wants: A Platform Engineer’s Guide
Mar 31, 20259 min read

Stop Building Internal Tools Nobody Wants: A Platform Engineer’s Guide

Stop building internal tools nobody wants. Platform engineering tips to boost adoption, DevX, feedback, and internal open-source mindset

AWS Service Catalog: A Game Changer for Platform Engineering
Mar 3, 20259 min read

AWS Service Catalog: A Game Changer for Platform Engineering

Discover how AWS Service Catalog helps Platform Engineers balance flexibility, security, and governance—transforming delivery at scale

5 Serverless Architecture Patterns You Should Stop Using (And What to Do Instead)
Feb 10, 20259 min read

5 Serverless Architecture Patterns You Should Stop Using (And What to Do Instead)

Avoid common AWS Serverless architecture pitfalls! Learn 5 outdated patterns & the best practices to replace them for better services

Protect Your API Gateway with AWS WAF using CDK
Dec 16, 20245 min read

Protect Your API Gateway with AWS WAF using CDK

learn about AWS Web Application Firewall (WAF) and use CDK code to protect an REST API served by an API Gateway and enable metrics and logs

A Critical Look at AWS Lambda Extensions: Pros, Cons, and Recommended Use Cases
Sep 10, 20249 min read

A Critical Look at AWS Lambda Extensions: Pros, Cons, and Recommended Use Cases

In this VERY opinionated post, I will share my thoughts about AWS Lambda extensions, the good and the bad, and when you should use or should not use them.

Build a Serverless Web Application on Fargate ECS with AWS CDK
Aug 13, 20248 min read

Build a Serverless Web Application on Fargate ECS with AWS CDK

Build a secure Fargate ECS cluster with an application load balancer and a web application using Python CDK code.

Build a Chatbot with Amazon Bedrock: Automate API Calls Using Powertools for AWS Lambda and CDK
Jul 8, 202410 min read

Build a Chatbot with Amazon Bedrock: Automate API Calls Using Powertools for AWS Lambda and CDK

Build a chatbot with Amazon Bedrock agents using Powertools for AWS. Learn to automate Lambda API calls via OpenAPI with bedrock agents.

Amazon CloudFormation Custom Resources Best Practices with CDK and Python Examples
Jun 18, 202414 min read

Amazon CloudFormation Custom Resources Best Practices with CDK and Python Examples

Learn of CloudFormation custom resources, their types, and best practices using AWS CDK, Powertools for AWS, Pydantic, and crhelper.

AWS Security Best Practices: Leveraging IAM for Service-to-Service Authentication and Authorization
Jun 3, 202418 min read

AWS Security Best Practices: Leveraging IAM for Service-to-Service Authentication and Authorization

AWS security best practices for service to service authentication, authorization and cross-account access with IAM policies and python code.

Optimize AWS Lambda with Dynamic Provisioned Concurrency
May 20, 202410 min read

Optimize AWS Lambda with Dynamic Provisioned Concurrency

Reduce AWS Lambda cold starts and optimize costs with dynamic provisioned concurrency. Master it with our AWS CDK Python guide.

AWS Serverless Diversity: Multi-Language Strategies for Optimal Solutions
Apr 29, 20249 min read

AWS Serverless Diversity: Multi-Language Strategies for Optimal Solutions

Learn from my experience developing a performance-oriented serverless service. I'll share insights on multi-language strategies.

Serverless APIs: Auto-Generate OpenAPI Docs & CI/CD Protections
Mar 4, 202410 min read

Serverless APIs: Auto-Generate OpenAPI Docs & CI/CD Protections

Generate OpenAPI documentation for serverless APIs automatically, keep it in sync with code, and safeguard against API breaking changes

Serverless API Documentation with Powertools for AWS
Feb 19, 202410 min read

Serverless API Documentation with Powertools for AWS

Generate OpenAPI documentation for Python Lambda function-based APIs, utilizing Powertools for AWS Lambda and Pydantic

Boost App Engagement with AWS CloudWatch Metrics & Powertools for AWS
Feb 7, 20247 min read

Boost App Engagement with AWS CloudWatch Metrics & Powertools for AWS

Learn to use CloudWatch metrics for mobile alerts, enhancing app engagement with AWS Lambda Powertools. Ideal for developers and engineers

Export CloudWatch Logs to Third-party Observability Tools with Serverless
Nov 13, 202310 min read

Export CloudWatch Logs to Third-party Observability Tools with Serverless

Export AWS CloudWatch logs to tools like DataDog, Grafana, using serverless for simpler management and deeper insights.

Build Amazon CloudWatch Dashboards with AWS CDK for Serverless Services
Oct 28, 20237 min read

Build Amazon CloudWatch Dashboards with AWS CDK for Serverless Services

Use AWS CDK to monitor a serverless service with CloudWatch dashboards, metrics, custom metrics, logs and alarms.

Deploy AWS AppConfig Configuration with the New L2 CDK Constructs
Sep 18, 20234 min read

Deploy AWS AppConfig Configuration with the New L2 CDK Constructs

In this post, learn to deploy AppConfig with AWS CDK's L2 constructs for feature flags in serverless and other apps.

Amazon SQS Dead Letter Queues and Failures Handling Best Practices
Aug 15, 20237 min read

Amazon SQS Dead Letter Queues and Failures Handling Best Practices

In this article you will learn about dead letter queue best practices and how to handle failures in a correct and automated manner.

Mastering Retries: Best Practices for Amazon SQS
Aug 7, 20238 min read

Mastering Retries: Best Practices for Amazon SQS

Learn how to handle Amazon SQS batch processing failures and master automatic retries with AWS Lambda Powertools for Python.

Effective Amazon SQS Batch Handling with AWS Lambda Powertools
Jul 24, 20236 min read

Effective Amazon SQS Batch Handling with AWS Lambda Powertools

Handle Amazon SQS batches in a safe manner that encourages retries with AWS Lambda Powertools for Python and AWS CDK code examples.

Serverless API Idempotency with AWS Lambda Powertools and CDK
Jun 26, 202313 min read

Serverless API Idempotency with AWS Lambda Powertools and CDK

Discover serverless API idempotency's significance and implementation using AWS Lambda, AWS CDK, and Lambda Powertools for Python.

Python Cookiecutter: Streamline Template Projects for Enhanced Developer Experience
Jun 12, 20238 min read

Python Cookiecutter: Streamline Template Projects for Enhanced Developer Experience

In this post, you will learn how to generate Python templates with cookiecutter and build new template projects from scratch.

Build AWS Serverless Scheduled Tasks with Amazon EventBridge and CDK
May 22, 202310 min read

Build AWS Serverless Scheduled Tasks with Amazon EventBridge and CDK

This blog post will teach you to leverage Amazon EventBridge to create serverless scheduled tasks using AWS CDK in Python.

Serverless Empowers Accessibility: Convert Text to Speech with Amazon Polly
May 8, 20239 min read

Serverless Empowers Accessibility: Convert Text to Speech with Amazon Polly

Learn to automate TTS, text to speech, with Amazon Polly in minutes using the provided GitHub Serverless service to improve accessibility.

Learn How to Write AWS Lambda Functions with Three Architecture Layers
Apr 24, 202312 min read

Learn How to Write AWS Lambda Functions with Three Architecture Layers

In this blog post, you will learn how to write AWS Lambda function code containing three architectural layers.

Guide to Serverless & Lambda Testing - Part 3 - Advanced Asynchronous Flows
Mar 27, 20239 min read

Guide to Serverless & Lambda Testing - Part 3 - Advanced Asynchronous Flows

Learn AWS Serverless testing best practices for advanced asynchronous flows that may or may not contain Lambda functions.

Guide to Serverless & Lambda Testing - Part 2 - Testing Pyramid
Mar 13, 202318 min read

Guide to Serverless & Lambda Testing - Part 2 - Testing Pyramid

Learn AWS Serverless & Lambda testing best practices using the testing pyramid: unit, infrastructure, integration and end to end tests.

Guide to AWS Serverless & Lambda Testing Best Practices - Part 1
Feb 27, 202313 min read

Guide to AWS Serverless & Lambda Testing Best Practices - Part 1

Discover Serverless and Lambda functions testing challenges, how they differ from old-school application testing and my guidelines and best practices for overcoming them.

AWS Lambda Layers Best Practices
Feb 13, 20237 min read

AWS Lambda Layers Best Practices

This blog post covers AWS Lambda layers basics, the pros and cons, and my recommended best practices.

AWS Lambda Smart Feature Flags - Now with Time Based Conditions
Jan 31, 20234 min read

AWS Lambda Smart Feature Flags - Now with Time Based Conditions

Learn how to define time-based feature flags that will change the behavior of your AWS service at different times, hours and weekdays.

Build AWS Lambda Container Image with AWS CDK
Jan 16, 20237 min read

Build AWS Lambda Container Image with AWS CDK

This blog post covers AWS Lambda custom container images basics and how to build them with AWS CDK in Python.

Build AWS Lambda Layers with AWS CDK
Jan 2, 20235 min read

Build AWS Lambda Layers with AWS CDK

This blog post covers AWS Lambda layers basics and how to build them with Docker & AWS CDK in Python.

Serverless Production Readiness Checklist
Dec 18, 20228 min read

Serverless Production Readiness Checklist

Before going to production, go through this checklist. The checklist spans security, backups, crisis recovery, CI/CD, and support readiness.

re:Invent 2022: Serverless Takeaways
Dec 3, 20227 min read

re:Invent 2022: Serverless Takeaways

Now that AWS re:Invent 2022 is officially over, let's go over the exciting new services and features launched from a Serverless perspective.

Deploy to AWS with GitHub Actions and AWS CDK
Oct 24, 20223 min read

Deploy to AWS with GitHub Actions and AWS CDK

This blog explains how you can use AWS CDK to deploy to your AWS account using GitHub Actions CI/CD pipeline.

AWS CDK - Best Practices From The Trenches
Oct 3, 202215 min read

AWS CDK - Best Practices From The Trenches

Best practices and guidelines for working with AWS CDK, learned from using AWS CDK, from development to production over the past 3 years.

How One Open-Source Code Donation Got Me Promoted
Aug 2, 20228 min read

How One Open-Source Code Donation Got Me Promoted

On October 2nd, 2020, my first pull request to an open-source project was merged. Little did I know that it would lead to my promotion to System Architect and that I'd be talking about it at the AWS TLV Summit in Israel. In this blog, I'll explain how this one PR changed my career and how you, too, can advance your career while keeping your work-life balance in check.

Cloud Platform Engineering - Supercharge Your Development
Jul 11, 202214 min read

Cloud Platform Engineering - Supercharge Your Development

Creating a cloud platform engineering team in your organization accelerates SaaS development. Learn about the challenges and best practices.

Start Your AWS Serverless Service With Two Clicks
Jun 19, 20226 min read

Start Your AWS Serverless Service With Two Clicks

This blog will help you to start your very own AWS Serverless Python service with a working pipeline and CDK with just two clicks!

Manage Your AWS Lambda Feature Flags Like a Boss
Jun 9, 20227 min read

Manage Your AWS Lambda Feature Flags Like a Boss

This blog post will describe a feature flags development process for getting feature flags right in: design, testing, production, retirement

AWS Lambda Feature Flags & Configuration Best Practices | AWS Lambda Cookbook
May 15, 202216 min read

AWS Lambda Feature Flags & Configuration Best Practices | AWS Lambda Cookbook

AWS Lambda handler best practices series. This blog focuses on AWS Lambda feature flags and configuration best practices.

AWS Lambda Input Validation Best Practices | AWS Lambda Cookbook
Apr 7, 202210 min read

AWS Lambda Input Validation Best Practices | AWS Lambda Cookbook

AWS Lambda handler. This blog focuses on AWS Lambda input validation and parsing best practices.

AWS Lambda Cookbook | Environment Variables
Mar 15, 20228 min read

AWS Lambda Cookbook | Environment Variables

This blog focuses on AWS Lambda functions environment variables best practices (static configuration).

AWS Lambda Metrics KPI Best Practices | AWS Lambda Cookbook
Mar 3, 20226 min read

AWS Lambda Metrics KPI Best Practices | AWS Lambda Cookbook

AWS Lambda handler custom metrics best practices for observability : cloudwatch metrics and business KPIs.

AWS Lambda Observability Best Practices | AWS Lambda Cookbook
Feb 24, 202211 min read

AWS Lambda Observability Best Practices | AWS Lambda Cookbook

This blog deals with AWS Lambda best practices for tracing and observability.

AWS Lambda Best Logging Practices | AWS Lambda Cookbook
Feb 23, 20226 min read

AWS Lambda Best Logging Practices | AWS Lambda Cookbook

This blog deals with AWS Lambda functions logging best practices.

Reduce Python Code Complexity With This Simple Trick
Feb 22, 20222 min read

Reduce Python Code Complexity With This Simple Trick

Learn how to reduce your Python code complexity with this simple trick.