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

Unified Kubernetes Support in LocalStack

LocalStack now provides enhanced support for running AWS services in Kubernetes environments. In this presentation from the LocalStack 4.0 community meetup by Simon Walker, we explore how to deploy and manage local AWS resources within Kubernetes clusters with LocalStack, to help developers maintain consistency between development and production environments.The session further covers LocalStack’s Kubernetes integration, including deployment via Helm charts, configuration of services like Lambda and RDS as Kubernetes pods, and networking between components. A demo illustrates provisioning a serverless application (Lambda functions interacting with a MySQL database) using Terraform, with all resources managed within a local Kubernetes cluster.You'll additionally learn the practical approaches for local testing and infrastructure emulation by moving from Docker to Kubernetes-native solutions as well as upcoming features, including broader service support and new container runtime options.## Resources- Documentation: https://docs.localstack.cloud/user-guide/localstack-enterprise/kubernetes-executor/- Get access: https://www.localstack.cloud/contact

Learn More
Learn More
Towards a LocalStack Snowflake emulator—develop your data pipelines locally!

About a year ago we have released the first version of LocalStack Extensions: Extensions are a powerful mechanism to plug additional functionality into LocalStack - ranging from additional service emulators, to value-add features like Chaos Engineering, request logging, cloud resource replication/proxying, and more.Over the last couple of months we have been experimenting with a LocalStack Snowflake emulator extension, which allows to develop and test your Snowflake data pipelines entirely on your local machine!In this talk, Waldemar discusses and demonstrates how you can develop your Snowflake data pipelines locally with LocalStack.

Learn More
Learn More
Testing Terraform Modules in Local and CI Environments with LocalStack

Terraform 1.6 introduced native Terraform tests, but running them against real cloud resources leads to long deployment times and unnecessary costs. With LocalStack's Terraform integration (tflocal), you can validate configurations locally while closely emulating real cloud behaviour. By combining Terraform tests with LocalStack, developers can run integration tests in CI/CD environments, test event-driven serverless workflows, and establish a rapid feedback loop for cloud development.In this presentation, Harsh Mishra provides a hands-on demo of Terraform testing with LocalStack, exploring how to configure tests, validate infrastructure locally, and reduce costs and complexity while improving confidence in deployments.## Resources- Blog: https://blog.localstack.cloud/efficient-infrastructure-testing-localstack-terraform-tests-framework/- Documentation: https://developer.hashicorp.com/terraform/language/tests- tflocal: https://docs.localstack.cloud/user-guide/integrations/terraform/#tflocal-wrapper-script

Learn More
Learn More

Launch yourself in the world of local cloud development

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