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

Develop and test your AI-powered cloud apps locally with LocalStack

Running AI/ML workloads in the cloud can be expensive, opaque, and difficult to iterate on. LocalStack changes this by enabling engineers to develop and test AI-powered cloud applications entirely locally, emulating services like SageMaker, Bedrock, Redshift, and Snowflake.In this presentation, Waldemar Hummer, CTO of LocalStack, demonstrates how to prototype and validate AI & ML data pipelines safely and cost-effectively using LocalStack’s cloud emulators. You’ll see how to emulate complex AI workflows, test integrations, and use “vibe coding” techniques confidently in a fully sandboxed local environment.

Watch recording
Watch recording
Run Your First AWS App Locally with LocalStack

Get started with LocalStack in minutes! In this episode, we’ll clone a ready-to-go AWS sample app, spin up LocalStack, and run everything locally without a cloud account. By the end, you’ll have a fully functional event-driven app running on your machine.📖 Want more?Check out the companion blog post for a deeper breakdown of the architecture, project structure, and all the commands you’ll need to run it yourself.🔗 https://blog.localstack.cloud/why-i-run-my-serverless-apps-locally/

Watch recording
Watch recording
From Local to Production: The CI/CD Flow That Doesn’t Suck

This is where it all comes together.CI/CD lets dev teams ship code automatically — but only if your pipeline is built to handle the cloud.In this episode, I show you how local testing + automated deployment = cloud apps that ship faster, safer, and smarter.Stick around to the end, this is the final episode of WTH is the Cloud?!

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