Overview of Lambda Worker sample
mainThis sample demonstrates how to run a Temporal Worker inside an AWS Lambda function using the @temporalio/lambda-worker package.
Key features include:
- Serverless Execution: Running Temporal Workflows and Activities in AWS Lambda.
- Observability: Optional OpenTelemetry (OTel) instrumentation that exports traces and metrics via AWS Distro for OpenTelemetry (ADOT).
- Structured Logging: Automatic detection and use of
@aws-lambda-powertools/loggerto produce JSON logs for CloudWatch. - Optimized Bundling: Uses a pre-bundling script to prepare Workflow code with OTel interceptors to improve Lambda cold start performance.