Back to all articles

Python

54 articles tagged with “Python

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

Build Open Source Software Developers Want to Use

Guide to building high-impact open-source projects with production-grade quality, strong DevEx, CI/CD, and community engagement.

Secrets Manager vs Parameter Store: Which to Use?
Sep 8, 20255 min read

Secrets Manager vs Parameter Store: Which to Use?

AWS Secrets Manager vs SSM Parameter Store compared: cost, rotation, encryption, versioning, and IaC support to help you choose.

Serverless MCP: Lambda vs Fargate for Agentic AI
Jul 16, 202517 min read

Serverless MCP: Lambda vs Fargate for Agentic AI

Compare three ways to deploy MCP servers on AWS: Lambda with Web Adapter, Pure Lambda, and Fargate. Includes CDK templates.

14 AWS Lambda Security Best Practices
Jul 9, 202511 min read

14 AWS Lambda Security Best Practices

14 real-world AWS Lambda security best practices: input validation, IAM least privilege, secrets management, and tenant isolation.

Observability with CloudWatch Synthetics
May 19, 202511 min read

Observability with CloudWatch Synthetics

Use AWS CloudWatch Synthetics to catch production issues before users do. Learn to implement and schedule synthetic canaries.

Running an MCP Server on AWS Lambda: What Happened
May 10, 20256 min read

Running an MCP Server on AWS Lambda: What Happened

Running an MCP server on AWS Lambda with FastAPI and FastMCP. It works, but cold starts and observability make it rough.

Serverless WebSockets with AppSync Events & Lambda
May 5, 202510 min read

Serverless WebSockets with AppSync Events & Lambda

Use AWS Lambda with AppSync Events for serverless WebSockets. Covers CDK setup, real-time events, and Powertools integration.

Stop Building Internal Tools Nobody Wants
Mar 31, 20259 min read

Stop Building Internal Tools Nobody Wants

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 Patterns You Should Stop Using
Feb 10, 20259 min read

5 Serverless Patterns You Should Stop Using

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

AWS Lambda Extensions: Pros, Cons, and Use Cases
Sep 10, 20249 min read

AWS Lambda Extensions: Pros, Cons, and 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 App on Fargate ECS with AWS CDK
Aug 13, 20248 min read

Build a Serverless App on Fargate ECS with AWS CDK

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

Build a Chatbot with Amazon Bedrock and Powertools
Jul 8, 202410 min read

Build a Chatbot with Amazon Bedrock and Powertools

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

CloudFormation Custom Resources Best Practices with CDK
Jun 18, 202414 min read

CloudFormation Custom Resources Best Practices with CDK

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

AWS IAM Best Practices for Service-to-Service Auth
Jun 3, 202418 min read

AWS IAM Best Practices for Service-to-Service Auth

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: Multi-Language Strategies
Apr 29, 20249 min read

AWS Serverless: Multi-Language Strategies

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

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

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, 202411 min read

Serverless API Documentation with Powertools for AWS

Generate OpenAPI documentation for Python Lambda APIs using Powertools for AWS Lambda and Pydantic. Automate your API spec with CDK.

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

Boost App Engagement with CloudWatch & Powertools

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 Tools
Nov 13, 202311 min read

Export CloudWatch Logs to Third-Party Tools

Export CloudWatch logs to DataDog, Grafana, or other observability tools using serverless architecture for simpler management.

Build CloudWatch Dashboards with AWS CDK
Oct 28, 20238 min read

Build CloudWatch Dashboards with AWS CDK

Build CloudWatch dashboards with AWS CDK to monitor serverless services using metrics, custom metrics, log insights, and alarms.

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

Deploy AWS AppConfig with the New L2 CDK Constructs

Deploy AWS AppConfig feature flags using CDK L2 constructs. Manage feature toggles for serverless apps with type-safe configurations.

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

SQS Dead Letter Queues: 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.

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

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 Lambda Powertools
Jun 26, 202313 min read

Serverless API Idempotency with Lambda Powertools

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

Python Cookiecutter: Streamline Template Projects
Jun 12, 20238 min read

Python Cookiecutter: Streamline Template Projects

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

Serverless Scheduled Tasks with EventBridge & CDK
May 22, 202310 min read

Serverless Scheduled Tasks with EventBridge & CDK

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

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

Convert Text to Speech with Amazon Polly Serverless

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

AWS Lambda Functions with Architecture Layers
Apr 24, 202312 min read

AWS Lambda Functions with Architecture Layers

Learn to structure AWS Lambda functions with three architectural layers for clean, testable, and maintainable serverless code in Python.

Serverless & Lambda Testing - Part 3 - Async Flows
Mar 27, 20239 min read

Serverless & Lambda Testing - Part 3 - Async Flows

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

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

Serverless & Lambda Testing - Part 2 - Pyramid

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

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

Serverless & Lambda Testing Best Practices - Part 1

Serverless and Lambda testing challenges, how they differ from traditional testing, and best practices for overcoming them.

AWS Lambda Layers Best Practices
Feb 13, 20237 min read

AWS Lambda Layers Best Practices

AWS Lambda layers explained: when to use them, the pros and cons, packaging tips, and best practices for Python serverless projects.

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

AWS Lambda Feature Flags 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

Build and deploy AWS Lambda custom container images with AWS CDK in Python. Covers Docker setup, ECR, and deployment best practices.

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

Build AWS Lambda Layers with AWS CDK

Build and deploy AWS Lambda layers with Docker and AWS CDK in Python. Covers packaging, versioning, and layer management best practices.

Serverless Production Readiness Checklist
Dec 18, 20229 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

Step-by-step guide to deploying AWS infrastructure with GitHub Actions and AWS CDK, including OIDC authentication and CI/CD pipelines.

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

How one open-source pull request led to a promotion to System Architect and a talk at the AWS TLV Summit. Advance your career with OSS.

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, 20227 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
May 15, 202216 min read

AWS Lambda Feature Flags & Configuration Best Practices

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

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

AWS Lambda Input Validation Best Practices

AWS Lambda input validation and parsing best practices using Pydantic and Powertools for AWS Lambda to ensure type-safe handlers.

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

AWS Lambda Cookbook | Environment Variables

AWS Lambda environment variables best practices for static configuration, type safety, and validation with Pydantic in Python.

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

AWS Lambda Metrics KPI Best Practices

AWS Lambda custom metrics best practices: publish CloudWatch metrics and business KPIs with Powertools for AWS Lambda in Python.

AWS Lambda Observability Best Practices
Feb 24, 202211 min read

AWS Lambda Observability Best Practices

AWS Lambda observability best practices for distributed tracing, metrics, and monitoring using Powertools for AWS Lambda in Python.

AWS Lambda Best Logging Practices
Feb 23, 20226 min read

AWS Lambda Best Logging Practices

Master AWS Lambda logging best practices with structured logs, correlation IDs, and Python Powertools for production-ready observability.

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

Reduce Python Code Complexity With This Simple Trick

Reduce Python code complexity using this simple refactoring trick. Write cleaner, more maintainable Lambda handler code with less effort.