Infrastructure-as-Code with LocalStack—Building & testing your configurations locally!

Infrastructure-as-Code refers to the practice of defining and provisioning cloud resources using code and automation scripts, thus eliminating the need for manual configurations. With frameworks like AWS CloudFormation, AWS CDK (Cloud Development Kit), AWS Serverless Application Model (SAM), Pulumi, and Terraform, users can specify their desired infrastructure state in code, enabling rapid and consistent deployment of resources.However, as with any code, IaC scripts require thorough testing to ensure their correctness and proper functionality. Traditional cloud environments for testing can be expensive, slow, and error-prone due to complexities in provisioning and configuration. With LocalStack, you can leverage a local emulation of various cloud services, such as S3, DynamoDB, EKS, and more!LocalStack simulates these cloud services on a developer's machine, allowing for comprehensive and efficient testing of IaC scripts before deployment to actual cloud environments. In this video, we explain how you can use LocalStack to be more efficient and cost-effective at testing these major IaC frameworks:• Terraform• Pulumi• Cloud Development Kit• CloudFormation• Serverless Application ModelAs organizations will continue to embrace IaC, cloud emulation framework like LocalStack will play an increasingly vital role in ensuring the quality and robustness of cloud infrastructure implementations.

Related Talks

Unlocking ease of use for deployment across LocalStack and AWS

When it comes to productivity, developer experience is more than just a buzzword. Creating an intuitive developer experience could help you get more out of LocalStack by democratizing access, cutting out manual tasks, and making environments more easily interchangeable between LocalStack and AWS.On a day-to-day basis, this could mean fewer tickets, less time spent creating environments, and more time on the important work that your environments support.This demo session will show how LocalStack’s new integration with Quali Torque can accelerate deployment on both LocalStack and AWS by:* Using generative AI to create reusable environment templates that can be deployed to LocalStack and AWS interchangeably in just a few clicks.( Providing a self-service catalog for your teams to find and provision environments quickly and easily—and without access to create or modify resource configurations.* Simplifying the deployment experience by eliminating complexity and security requirements to run environments on AWS.* Tracking all activity to identify performance issues for LocalStack deployments and wasted cloud costs for AWS deployments proactively.

Watch recording
Watch recording
Local Debugging for Lambda Functions via new Lambda Debug Mode

Debugging serverless functions has always been challenging, often requiring repeated invocations, extensive log tracing, and cloud deployments to diagnose an issue. The new Lambda Debug Mode in LocalStack changes this by allowing developers to debug AWS Lambda functions directly in their IDE, with breakpoints, variable inspection, and step-through execution, without leaving their local environment.In this presentation, Marco Edoardo Palma provides a hands-on demo of Lambda Debug Mode—from debugging standalone functions to handling multi-function workflows. Learn how this developer-first approach makes debugging serverless applications faster, smoother, and more intuitive.## Resources- Documentation: https://docs.localstack.cloud/user-guide/lambda-tools/debugging/#lambda-debug-mode-preview- Samples: https://github.com/localstack-samples/localstack-pro-samples/tree/master/lambda-debug-mode

Watch recording
Watch recording
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.

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