Testing Terraform AWS Modules in Harness CI with LocalStack

LocalStack enables organizations to automate their application testing and integration process through DevOps practices, such as continuous integration (CI). LocalStack allows organizations to move away from complicated AWS testing and staging environments by enabling a key component of testing and delivering cloud-native applications. To further automate the process, we use Infrastructure-as-Code (IaC) frameworks like Terraform that allow you to create your resources declaratively and apply those resources. Testing your Terraform modules against the real AWS cloud can be time-consuming and costly and can make you run into the risk of dangling resources after an unsuccessful CI run. Using LocalStack to emulate a mock ephemeral AWS infrastructure on CI pipelines allows you to work on the same functionality the real AWS cloud provides while cutting down testing costs and deployment times. In this session, Jim Sheldon, Senior Developer Advocate at Harness, will demonstrate how to use LocalStack to test Terraform modules on Harness CI. Harness CI allows you to create software pipelines that will enable you to check out your code, build the software, run your tests, and validate every code change. We wind up the session with updates about the all-new LocalStack release!

Related Talks

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.

Learn More
Learn More
5 takeaways for Running and Troubleshooting Serverless Applications Locally

Check out the recording of the hands-on webinar featuring Yan Cui, AWS Serverless Hero, and Waldemar Hummer, CTO of LocalStack, to learn practical use cases around monitoring serverless applications for local dev&test loops. Learn the best practices for debugging serverless applications using various AWS services to support your serverless workflows while troubleshooting errors and performance issues. In this video, you will learn about building and deploying Serverless apps locally, common patterns and workflows for testing Serverless apps, troubleshooting errors and performance issues in dev&test loops, implementing observability with distributed tracing with Lumigo, and local Serverless development with LocalStack.

Learn More
Learn More
Artifact Integrity & Open Source Governance, the shift left way

In this talk, Teja explore the intricacies of the software supply chain and discuss strategies for protecting your software against supply chain attacks. He look sinto the risks associated with these threats, offer mitigation measures, and covers recommended practices for managing open-source software and Software Bills of Materials (SBOMs). This session aims to equip the audience with the knowledge and tools needed to enhance the security of their software supply chain.

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