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

How to use AWS SDKs with LocalStack

LocalStack integrates with official AWS Software Development Kits (SDKs) so you can connect to LocalStack services using the same application code you use for AWS services. This lets you develop and test your applications locally without connecting to the cloud.In this video, we will talk about how you can connect to LocalStack emulated services using AWS SDKs.

Learn More
Learn More
How to save state in LocalStack?

LocalStack is ephemeral, so when you stop and restart it, all data is lost. You can use certain features to save the state & load it back when you restart LocalStack. This includes saving the local state for S3 buckets, DynamoDB tables, RDS databases and more. In this video, we explore three mechanisms that allows you to save state in LocalStack. They are:• Persistence• State Export & Import• Cloud Pods ## Documentation• State management: https://docs.localstack.cloud/user-guide/state-management/ • Cloud Pods: https://docs.localstack.cloud/user-guide/state-management/cloud-pods/ • Persistence: https://docs.localstack.cloud/user-guide/state-management/persistence/ • State Export & Import: https://docs.localstack.cloud/user-guide/state-management/export-import-state/

Learn More
Learn More
How to install LocalStack Snowflake Emulator

In this video, you'll learn how to set up and integrate LocalStack's Snowflake Emulator to develop and test your Snowflake data apps in your local environment or CI pipelines. Whether you're using Snowpark, various client libraries, or building interactive data apps with frameworks like Streamlit, this emulator simplifies your developer experience.We'll walk you through step-by-step instructions on:- Installing the Snowflake emulator with the LocalStack CLI & Docker- Configuring and integrating the emulator with popular SQL clients, such as DBeaver- Running SQL queries locally to replicate a full Snowflake environment without cloud dependencies⚡ Get early access! The Snowflake Emulator is currently in public preview—reach out via the link below for access and start building today!## Resources- LocalStack for Snowflake documentation: https://snowflake.localstack.cloud/- LocalStack for Snowflake samples: https://github.com/localstack-samples/localstack-snowflake-samples- Get access: https://www.localstack.cloud/contact

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