René's URL Explorer Experiment


Title: Tutorial - Powertools for AWS Lambda (Python)

Description: Powertools for AWS Lambda (Python) introduction

Mail addresses
aws-powertools-maintainers@amazon.com

Generator: mkdocs-1.6.1, mkdocs-material-9.7.1

direct link

Domain: docs.powertools.aws.dev

authorAmazon Web Services
guide-namePowertools for AWS Lambda (Python)
service-namePowertools for AWS Lambda

Links:

Skip to content https://docs.powertools.aws.dev/lambda-python/latest/tutorial#requirements
Click here to go to latest. https://docs.powertools.aws.dev/
https://docs.powertools.aws.dev/lambda-python/
GitHub https://github.com/aws-powertools/powertools-lambda-python
Homepage https://docs.powertools.aws.dev/lambda-python/
Processes https://docs.powertools.aws.dev/lambda-python/security/
API Documentation https://docs.powertools.aws.dev/lambda-python/api_doc/batch/base/
https://docs.powertools.aws.dev/lambda-python/
GitHub https://github.com/aws-powertools/powertools-lambda-python
Homepage https://docs.powertools.aws.dev/lambda-python/
Installation https://docs.powertools.aws.dev/lambda-python/getting-started/install/
Changelog https://docs.powertools.aws.dev/lambda-python/changelog/
Tutorial https://docs.powertools.aws.dev/lambda-python/latest/
Requirements https://docs.powertools.aws.dev/lambda-python/latest/tutorial#requirements
Getting started https://docs.powertools.aws.dev/lambda-python/latest/tutorial#getting-started
Project structure https://docs.powertools.aws.dev/lambda-python/latest/tutorial#project-structure
Code example https://docs.powertools.aws.dev/lambda-python/latest/tutorial#code-example
Run your code https://docs.powertools.aws.dev/lambda-python/latest/tutorial#run-your-code
Local test https://docs.powertools.aws.dev/lambda-python/latest/tutorial#local-test
Live test https://docs.powertools.aws.dev/lambda-python/latest/tutorial#live-test
Routing https://docs.powertools.aws.dev/lambda-python/latest/tutorial#routing
Adding a new route https://docs.powertools.aws.dev/lambda-python/latest/tutorial#adding-a-new-route
Creating our own router https://docs.powertools.aws.dev/lambda-python/latest/tutorial#creating-our-own-router
Simplifying with Event Handler https://docs.powertools.aws.dev/lambda-python/latest/tutorial#simplifying-with-event-handler
Structured Logging https://docs.powertools.aws.dev/lambda-python/latest/tutorial#structured-logging
JSON as output https://docs.powertools.aws.dev/lambda-python/latest/tutorial#json-as-output
Simplifying with Logger https://docs.powertools.aws.dev/lambda-python/latest/tutorial#simplifying-with-logger
Tracing https://docs.powertools.aws.dev/lambda-python/latest/tutorial#tracing
Generating traces https://docs.powertools.aws.dev/lambda-python/latest/tutorial#generating-traces
Enriching our generated traces https://docs.powertools.aws.dev/lambda-python/latest/tutorial#enriching-our-generated-traces
Simplifying with Tracer https://docs.powertools.aws.dev/lambda-python/latest/tutorial#simplifying-with-tracer
Custom Metrics https://docs.powertools.aws.dev/lambda-python/latest/tutorial#custom-metrics
Creating metrics https://docs.powertools.aws.dev/lambda-python/latest/tutorial#creating-metrics
Simplifying with Metrics https://docs.powertools.aws.dev/lambda-python/latest/tutorial#simplifying-with-metrics
Final considerations https://docs.powertools.aws.dev/lambda-python/latest/tutorial#final-considerations
Workshop 🆕 https://s12d.com/powertools-for-aws-lambda-workshop
Tracer https://docs.powertools.aws.dev/lambda-python/core/tracer/
Logger https://docs.powertools.aws.dev/lambda-python/core/logger/
Metrics https://docs.powertools.aws.dev/lambda-python/core/metrics/
Amazon CloudWatch EMF https://docs.powertools.aws.dev/lambda-python/core/metrics/
Datadog https://docs.powertools.aws.dev/lambda-python/core/metrics/datadog/
REST API https://docs.powertools.aws.dev/lambda-python/core/event_handler/api_gateway/
GraphQL API https://docs.powertools.aws.dev/lambda-python/core/event_handler/appsync/
AppSync Events https://docs.powertools.aws.dev/lambda-python/core/event_handler/appsync_events/
Amazon Bedrock Agents https://docs.powertools.aws.dev/lambda-python/core/event_handler/bedrock_agents/
Parameters https://docs.powertools.aws.dev/lambda-python/utilities/parameters/
Batch Processing https://docs.powertools.aws.dev/lambda-python/utilities/batch/
Kafka Consumer https://docs.powertools.aws.dev/lambda-python/utilities/kafka/
Typing https://docs.powertools.aws.dev/lambda-python/utilities/typing/
Validation https://docs.powertools.aws.dev/lambda-python/utilities/validation/
Event Source Data Classes https://docs.powertools.aws.dev/lambda-python/utilities/data_classes/
Parser (Pydantic) https://docs.powertools.aws.dev/lambda-python/utilities/parser/
Idempotency https://docs.powertools.aws.dev/lambda-python/utilities/idempotency/
Data Masking https://docs.powertools.aws.dev/lambda-python/utilities/data_masking/
Feature flags https://docs.powertools.aws.dev/lambda-python/utilities/feature_flags/
Streaming https://docs.powertools.aws.dev/lambda-python/utilities/streaming/
Middleware factory https://docs.powertools.aws.dev/lambda-python/utilities/middleware_factory/
JMESPath Functions https://docs.powertools.aws.dev/lambda-python/utilities/jmespath_functions/
CloudFormation Custom Resources https://github.com/aws-cloudformation/custom-resource-helper
Build recipes https://docs.powertools.aws.dev/lambda-python/build_recipes/
Getting started https://docs.powertools.aws.dev/lambda-python/build_recipes/getting-started/
Build tools https://docs.powertools.aws.dev/lambda-python/build_recipes/build-tools/
Cross-platform builds https://docs.powertools.aws.dev/lambda-python/build_recipes/cross-platform/
Performance optimization https://docs.powertools.aws.dev/lambda-python/build_recipes/performance-optimization/
CI/CD integration https://docs.powertools.aws.dev/lambda-python/build_recipes/cicd-integration/
Troubleshooting https://docs.powertools.aws.dev/lambda-python/build_recipes/troubleshooting/
Upgrade guide https://docs.powertools.aws.dev/lambda-python/upgrade/
We Made This (Community) https://docs.powertools.aws.dev/lambda-python/we_made_this/
Roadmap https://docs.powertools.aws.dev/lambda-python/roadmap/
llms.txt https://docs.powertools.aws.dev/lambda-python/llms.txt
llms.txt (full version) https://docs.powertools.aws.dev/lambda-python/llms-full.txt
Security https://docs.powertools.aws.dev/lambda-python/security/
Automation https://docs.powertools.aws.dev/lambda-python/automation/
Versioning policy https://docs.powertools.aws.dev/lambda-python/versioning/
Roadmap https://docs.powertools.aws.dev/lambda-python/roadmap/
Maintainers https://docs.powertools.aws.dev/lambda-python/maintainers/
Development environment https://docs.powertools.aws.dev/lambda-python/contributing/setup/
Your first contribution https://docs.powertools.aws.dev/lambda-python/contributing/getting_started/
Conventions https://docs.powertools.aws.dev/lambda-python/contributing/conventions/
Base https://docs.powertools.aws.dev/lambda-python/api_doc/batch/base/
Decorators https://docs.powertools.aws.dev/lambda-python/api_doc/batch/decorators/
Exceptions https://docs.powertools.aws.dev/lambda-python/api_doc/batch/exceptions/
Event Source Data Classes https://docs.powertools.aws.dev/lambda-python/api_doc/data_classes/
Base https://docs.powertools.aws.dev/lambda-python/api_doc/data_masking/base/
Exception https://docs.powertools.aws.dev/lambda-python/api_doc/data_masking/exceptions/
Provider https://docs.powertools.aws.dev/lambda-python/api_doc/data_masking/provider/
AppSync https://docs.powertools.aws.dev/lambda-python/api_doc/event_handler/appsync/
Middleware https://docs.powertools.aws.dev/lambda-python/api_doc/event_handler/middleware/
OpenAPI https://docs.powertools.aws.dev/lambda-python/api_doc/event_handler/openapi/
REST https://docs.powertools.aws.dev/lambda-python/api_doc/event_handler/api_gateway/
AppConfig https://docs.powertools.aws.dev/lambda-python/api_doc/feature_flags/appconfig/
Base https://docs.powertools.aws.dev/lambda-python/api_doc/feature_flags/base/
Comparators https://docs.powertools.aws.dev/lambda-python/api_doc/feature_flags/comparators/
Exceptions https://docs.powertools.aws.dev/lambda-python/api_doc/feature_flags/exceptions/
Feature flags https://docs.powertools.aws.dev/lambda-python/api_doc/feature_flags/feature_flags/
Schema https://docs.powertools.aws.dev/lambda-python/api_doc/feature_flags/schema/
Base https://docs.powertools.aws.dev/lambda-python/api_doc/idempotency/base/
Config https://docs.powertools.aws.dev/lambda-python/api_doc/idempotency/config/
Exceptions https://docs.powertools.aws.dev/lambda-python/api_doc/idempotency/exceptions/
Persistence https://docs.powertools.aws.dev/lambda-python/api_doc/idempotency/persistence/
Serialization https://docs.powertools.aws.dev/lambda-python/api_doc/idempotency/serialization/
JMESPath Functions https://docs.powertools.aws.dev/lambda-python/api_doc/jmespath_functions/
DataDog Formatter https://docs.powertools.aws.dev/lambda-python/api_doc/logger/datadog_formatter/
Exceptions https://docs.powertools.aws.dev/lambda-python/api_doc/logger/exceptions/
Formatter https://docs.powertools.aws.dev/lambda-python/api_doc/logger/formatter/
Lambda Context https://docs.powertools.aws.dev/lambda-python/api_doc/logger/lambda_context/
Logger https://docs.powertools.aws.dev/lambda-python/api_doc/logger/logger/
Base https://docs.powertools.aws.dev/lambda-python/api_doc/metrics/base/
Exceptions https://docs.powertools.aws.dev/lambda-python/api_doc/metrics/exceptions/
EMF https://docs.powertools.aws.dev/lambda-python/api_doc/metrics/provider_emf/
DataDog https://docs.powertools.aws.dev/lambda-python/api_doc/metrics/provider_datadog/
Middleware Factory https://docs.powertools.aws.dev/lambda-python/api_doc/middleware_factory/
Base https://docs.powertools.aws.dev/lambda-python/api_doc/parameters/base/
AppConfig https://docs.powertools.aws.dev/lambda-python/api_doc/parameters/appconfig/
DynamoDB https://docs.powertools.aws.dev/lambda-python/api_doc/parameters/dynamodb/
SSM https://docs.powertools.aws.dev/lambda-python/api_doc/parameters/ssm/
Secrets https://docs.powertools.aws.dev/lambda-python/api_doc/parameters/secrets/
Parser https://docs.powertools.aws.dev/lambda-python/api_doc/parser/
Streaming https://docs.powertools.aws.dev/lambda-python/api_doc/streaming/
Base https://docs.powertools.aws.dev/lambda-python/api_doc/tracer/base/
Tracing https://docs.powertools.aws.dev/lambda-python/api_doc/tracer/tracing/
Typing https://docs.powertools.aws.dev/lambda-python/api_doc/typing/
Validation https://docs.powertools.aws.dev/lambda-python/api_doc/validation/
Requirements https://docs.powertools.aws.dev/lambda-python/latest/tutorial#requirements
Getting started https://docs.powertools.aws.dev/lambda-python/latest/tutorial#getting-started
Project structure https://docs.powertools.aws.dev/lambda-python/latest/tutorial#project-structure
Code example https://docs.powertools.aws.dev/lambda-python/latest/tutorial#code-example
Run your code https://docs.powertools.aws.dev/lambda-python/latest/tutorial#run-your-code
Local test https://docs.powertools.aws.dev/lambda-python/latest/tutorial#local-test
Live test https://docs.powertools.aws.dev/lambda-python/latest/tutorial#live-test
Routing https://docs.powertools.aws.dev/lambda-python/latest/tutorial#routing
Adding a new route https://docs.powertools.aws.dev/lambda-python/latest/tutorial#adding-a-new-route
Creating our own router https://docs.powertools.aws.dev/lambda-python/latest/tutorial#creating-our-own-router
Simplifying with Event Handler https://docs.powertools.aws.dev/lambda-python/latest/tutorial#simplifying-with-event-handler
Structured Logging https://docs.powertools.aws.dev/lambda-python/latest/tutorial#structured-logging
JSON as output https://docs.powertools.aws.dev/lambda-python/latest/tutorial#json-as-output
Simplifying with Logger https://docs.powertools.aws.dev/lambda-python/latest/tutorial#simplifying-with-logger
Tracing https://docs.powertools.aws.dev/lambda-python/latest/tutorial#tracing
Generating traces https://docs.powertools.aws.dev/lambda-python/latest/tutorial#generating-traces
Enriching our generated traces https://docs.powertools.aws.dev/lambda-python/latest/tutorial#enriching-our-generated-traces
Simplifying with Tracer https://docs.powertools.aws.dev/lambda-python/latest/tutorial#simplifying-with-tracer
Custom Metrics https://docs.powertools.aws.dev/lambda-python/latest/tutorial#custom-metrics
Creating metrics https://docs.powertools.aws.dev/lambda-python/latest/tutorial#creating-metrics
Simplifying with Metrics https://docs.powertools.aws.dev/lambda-python/latest/tutorial#simplifying-with-metrics
Final considerations https://docs.powertools.aws.dev/lambda-python/latest/tutorial#final-considerations
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#requirements
AWS CLIhttps://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
configured with your credentialshttps://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-getting-started-set-up-credentials.html
AWS SAM CLIhttps://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#getting-started
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#project-structure
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#code-example
AWS SAM documentationhttps://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-controlling-access-to-apis.html
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#run-your-code
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#local-test
Postmanhttps://www.postman.com/downloads/
httpiehttps://httpie.io/
AWS SAM CLI local testinghttps://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-local-start-api.html
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#live-test
SAM Deploy reference docshttps://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-deploy.html
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#routing
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#adding-a-new-route
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#creating-our-own-router
trade-offs on each approachhttps://docs.powertools.aws.dev/lambda-python/core/event_handler/api_gateway/#considerations
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#simplifying-with-event-handler
Event Handlerhttps://docs.powertools.aws.dev/lambda-python/core/event_handler/api_gateway/
REST API (API Gateway, ALB)https://docs.powertools.aws.dev/lambda-python/core/event_handler/api_gateway/
GraphQL API (AppSync)https://docs.powertools.aws.dev/lambda-python/core/event_handler/appsync/
Flaskhttps://flask.palletsprojects.com/en/2.0.x/
Event Handler for API Gatewayhttps://docs.powertools.aws.dev/lambda-python/core/event_handler/api_gateway/
404 routeshttps://docs.powertools.aws.dev/lambda-python/core/event_handler/api_gateway/#handling-not-found-routes
error handlinghttps://docs.powertools.aws.dev/lambda-python/core/event_handler/api_gateway/#exception-handling
access query strings, payloadhttps://docs.powertools.aws.dev/lambda-python/core/event_handler/api_gateway/#accessing-request-details
Real Pythonhttps://realpython.com/primer-on-python-decorators/
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#structured-logging
structure themhttps://docs.aws.amazon.com/lambda/latest/operatorguide/parse-logs.html
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#json-as-output
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#simplifying-with-logger
Loggerhttps://docs.powertools.aws.dev/lambda-python/core/logger/
correlation idhttps://docs.powertools.aws.dev/lambda-python/core/logger/#setting-a-correlation-id
environment variableshttps://docs.powertools.aws.dev/lambda-python/#environment-variables
set specific keyshttps://docs.powertools.aws.dev/lambda-python/core/logger/#append_keys-method
log exceptionshttps://docs.powertools.aws.dev/lambda-python/core/logger/#logging-exceptions
sample debug logshttps://docs.powertools.aws.dev/lambda-python/core/logger/#sampling-debug-logs
CloudWatch Logs Insighthttps://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#tracing
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#generating-traces
AWS X-Rayhttps://aws.amazon.com/xray/
two-step processhttps://docs.aws.amazon.com/lambda/latest/dg/services-xray.html
AWS X-Ray SDKhttps://docs.aws.amazon.com/xray-sdk-for-python/latest/reference/index.html
Powertools for AWS Lambda (Python) Tracerhttps://docs.powertools.aws.dev/lambda-python/core/tracer/
subsegmenthttps://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-subsegments
AWSXRayDaemonWriteAccesshttps://console.aws.amazon.com/iam/home#/policies/arn:aws:iam::aws:policy/AWSXRayDaemonWriteAccess
AWS X-Ray Consolehttps://console.aws.amazon.com/xray/home#/traces/
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#enriching-our-generated-traces
filter expressionshttps://docs.aws.amazon.com/xray/latest/devguide/xray-console-filters.html
blog series on Lambda performancehttps://aws.amazon.com/blogs/compute/operating-lambda-performance-optimization-part-1/
AWS X-Ray Consolehttps://console.aws.amazon.com/xray/home#/traces/
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#simplifying-with-tracer
Powertools for AWS Lambda (Python) Tracerhttps://docs.powertools.aws.dev/lambda-python/core/tracer/
opt-out some of these behaviourshttps://docs.powertools.aws.dev/lambda-python/core/tracer/#advanced
AWS X-Ray Consolehttps://console.aws.amazon.com/xray/home#/traces/
Amazon CloudWatch ServiceLens viewhttps://console.aws.amazon.com/cloudwatch/home#servicelens:service-map/map
Amazon CloudWatch ServiceLenshttps://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ServiceLens.html
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#custom-metrics
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#creating-metrics
invocation and performance metricshttps://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics.html#monitoring-metrics-types
latency and some HTTP metricshttps://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-metrics-and-dimensions.html#api-gateway-metrics
optionally enable detailed metricshttps://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-metrics-and-dimensions.html#api-gateway-metricdimensions
Metrics Namespacehttps://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html
dimensionshttps://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Dimension
CloudWatchPutMetricPolicyhttps://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-policy-template-list.html#cloudwatch-put-metric-policy
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#simplifying-with-metrics
Powertools for AWS Lambda (Python) Metricshttps://docs.powertools.aws.dev/lambda-python/core/metrics/
Amazon CloudWatch Embedded Metric Format (EMF)https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format.html
blog posthttps://aws.amazon.com/blogs/mt/enhancing-workload-observability-using-amazon-cloudwatch-embedded-metric-format/
Metricshttps://docs.powertools.aws.dev/lambda-python/core/metrics/
Metricshttps://docs.powertools.aws.dev/lambda-python/core/metrics/
Artilleryhttps://www.artillery.io/
K6.iohttps://k6.io/open-source
CloudWatch Metrics viewhttps://console.aws.amazon.com/cloudwatch/home#metricsV2:graph=~()
CloudWatch ServiceLens viewhttps://console.aws.amazon.com/cloudwatch/home#servicelens:service-map/map
https://docs.powertools.aws.dev/lambda-python/latest/tutorial#final-considerations
Tracerhttps://docs.powertools.aws.dev/lambda-python/core/tracer/
Metricshttps://docs.powertools.aws.dev/lambda-python/core/metrics/
Logginghttps://docs.powertools.aws.dev/lambda-python/core/logger/
Well-Architected Serverless Lenshttps://aws.amazon.com/blogs/aws/new-serverless-lens-in-aws-well-architected-tool/
documentation issuehttps://github.com/aws-powertools/powertools-lambda-python/issues/new?assignees=&labels=documentation&template=documentation-improvements.md&title=Tutorial%20Suggestion
Privacyhttps://aws.amazon.com/privacy
Site termshttps://aws.amazon.com/terms/
Material for MkDocs https://squidfunk.github.io/mkdocs-material/
https://discord.gg/B8zZKbbyET
https://powertools.aws.dev/
https://pypi.org/project/aws-lambda-powertools/

Viewport: width=device-width,initial-scale=1


URLs of crawlers that visited me.