Testing¶
Terraform testing involves validating the infrastructure-as-code templates and configurations to ensure the provisioning and management of cloud resources function correctly
Info
There are two types of testing IaC code: manual and automated. The manual method involves simply deploying infrastructure using your code into a sandbox environment and running manual tests against what you have deployed to check your code does what you want. This could be using CURL to validate web access, A SQL client to test access to a database, or remoting into a server and running local tests.
The automated method is by nature of it being automatic far more complicated. This document will focus into automated testing.