Serverless Best Practices with AWS Lambda PowerTools

For one-off tasks, AWS Lambda really can be incredibly easy. You write a few lines of code, deploy it, and you have a function running in the cloud ready to respond to events, scale automatically, and that only costs you pennies.But as your application grows, so does some necessary complexity. When a few one-off functions become a full serverless backend architecture made up of interconnected services, you’ll need to pay careful attention to best practices to ensure that your application is easy to debug, maintain, and scale.That’s where AWS Powertools for Lambda fits in. It’s a suite of reusable utilities designed to simplify bringing best practices around things like logging, tracing, metrics, idempotency and more to your Lambda functions with minimal effort.This demo session will dive into some of the functionality provided by the AWS Powertools (TypeScript) core libraries, such as:Encapsulating best practices into reusable libraries for structured logging, metrics collection, idempotency, and more.Leveraging Middy middleware to integrate common cross-cutting concerns, such as injecting Lambda context or automatically flushing metric.Enabling local testing with LocalStack, allowing you to deploy and debug Lambda functions with structured logs, trace data, and embedded metrics.Providing modular examples that can be deployed to AWS or LocalStack with ease, enabling developers to explore libraries.

Related Talks

It Worked Yesterday: The Truth About Serverless Testing.

Ever wish you could test your whole cloud app without touching the cloud? I’ll show you how to validate your serverless pipeline from start to finish, right on your laptop using LocalStack. Join our Slack community and start shipping with confidence.

Watch recording
Watch recording
Automate Your Tests with GitHub Actions & LocalStack

Bring your tests to CI/CD with GitHub Actions! In this episode, we’ll show how to integrate LocalStack into your workflow, so your tests run automatically on every push without touching real AWS resources.Whether you're testing Lambda, DynamoDB, S3, or beyond LocalStack makes it possible to run everything locally, even in your CI workflows.🔗 Read the companion blog post: https://blog.localstack.cloud/automate-your-tests-with-github-actions-and-localstack/

Watch recording
Watch recording
Fake It Till You Make It: Cloud Edition

Building and debugging cloud-native applications often involves slow CI/CD pipelines, hard-to-reproduce bugs, and the need for costly shared environments. LocalStack offers a better way — letting developers simulate real AWS services entirely on their local machine.In this presentation, Kiah Imani gives a hands-on walkthrough of building and testing AWS workflows locally with LocalStack. From Lambda functions to S3 pre-signed uploads and SNS/SQS pipelines, you'll see how to prototype, debug, and iterate on cloud-native apps without ever deploying to the cloud.### Resources- S3: https://docs.localstack.cloud/aws/services/s3/- Lambda: https://docs.localstack.cloud/aws/services/lambda/- SQS: https://docs.localstack.cloud/aws/services/sqs/- SNS: https://docs.localstack.cloud/aws/services/sns/- Repo: https://github.com/localstack-samples/sample-serverless-image-resizer-s3-lambda/

Watch recording
Watch recording

Launch yourself in the world of local cloud development

Try for free
Try for free
Talk to Sales
Talk to Sales