Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Designs, builds, deploys, tests, and debugs serverless applications on AWS Lambda using the AWS Serverless MCP Server.
59% 86%+27 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 13 of 22 without it.
3 of 3 safety checks passed
Not used yet
Lambda Powertools is the recommended library for implementing observability and reliability patterns with minimal boilerplate. It is available for Python, TypeScript, Java, and .NET.
Install:
| Runtime | Command |
|---|---|
| Python | pip install aws-lambda-powertools |
| TypeScript | npm i @aws-lambda-powertools/logger @aws-lambda-powertools/tracer @aws-lambda-powertools/metrics |
| Java | Add software.amazon.lambda:powertools-tracing, powertools-logging, powertools-metrics to Maven/Gradle |
| .NET | dotnet add package AWS.Lambda.Powertools.Logging (plus .Tracing, .Metrics) |
SAM init templates:
sam init --app-template hello-world-powertools-pythonsam init --app-template hello-world-powertools-typescriptCore utilities:
| Utility | What it does |
|---|---|
| Logger | Structured JSON logging with Lambda context automatically injected |
| Tracer | X-Ray tracing with decorators; traces handler + downstream calls |
| Metrics | Custom CloudWatch metrics via Embedded Metric Format (EMF) — async, no API call overhead |
| Idempotency | Prevent duplicate execution using DynamoDB as idempotency store |
| Batch | Partial batch failure handling for SQS, Kinesis, DynamoDB Streams |
| Parameters | Cached retrieval from SSM Parameter Store, Secrets Manager, AppConfig |
| Parser | Event validation with typed models — Python uses Pydantic, TypeScript uses Zod |
| Feature Flags | Rule-based feature toggles backed by AppConfig |
| Event Handler | Route REST/HTTP API, GraphQL, and Bedrock Agent events with decorators (Python, TS, Java, .NET) |
| Kafka Consumer | Deserialize Kafka events (Avro, Protobuf, JSON Schema) for MSK and self-managed Kafka (Python, TS, Java, .NET) |
| Data Masking | Redact or encrypt sensitive fields for compliance (Python, TS) |
| Event Source Data Classes | Typed data classes for all Lambda event sources (Python) |
Use Embedded Metric Format (EMF) for custom metrics — zero latency overhead and no extra API cost. See observability.md for setup and code examples.
Parameters caching reduces cold start impact from secrets retrieval. The Parameters utility caches values for a configurable TTL (default 5 seconds), avoiding an API call on every invocation.
Key environment variables:
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.