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

Related Talks

LocalStack Neptune development with G.V() — Gremlin IDE

We’re partnering with gdotv to simplify development with our Amazon Neptune cloud emulator component. You can now easily query, visualise and model your graph data either interactively or using the Gremlin querying language with G.V() - Gremlin IDE.With G.V(), you can considerably enhance your graph database development experience whilst gaining access to a powerful reporting and visualisation toolset for your production data. With LocalStack’s core cloud emulator, parity is ensured between a local Neptune instance and AWS’s own, meaning Gremlin queries in your development environment will behave identically on Amazon Neptune. In this video we demonstrate how to use G.V() with LocalStack Neptune.Read the announcement blog here: https://blog.localstack.cloud/2024-06-05-localstack-neptune-development-with-gv-gremlin-ide/

Learn More
Learn More
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

Learn More
Learn More
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.

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