Skip to main content
Demo

Testing Infrastructure as Code on Localhost

This demo uses open source tools terratest with localstack to write useful tests for your Terraform infrastructure in your local environment.

HashiTalks is a community event and not all use cases are endorsed officially by HashiCorp.

Speaker: Samuel Kihahu

Infrastructure as code has become the standard for DevOps / SRE teams in creation and management of cloud infrastructure resources. As a result, the need to validate the infrastructure code is critical to identify and resolve issues. This testing also has a cost implication as actual resources will be created on commercial cloud environments.

In this talk, Samuel Kihahu will use the Go library terratest in combination with the open source project localstack to write useful tests for infrastructure as code written in terraform on your local environment. He will also explore the advantages such testing offers as well as the limitations.

Slides

You can find the slides from HashiTalks: Africa presentations in this HashiCorp Community Forum page.

More resources like this one

3/15/2023Presentation

Advanced Terraform techniques

2/3/2023Case Study

Automating Multi-Cloud, Multi-Region Vault for Teams and Landing Zones

2/1/2023Case Study

Should My Team Really Need to Know Terraform?

1/20/2023Case Study

Packaging security in Terraform modules