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

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