Gruntworks open-sourced their terraform, docker, packer etc. testing framework and I simply find it amazing. To my knowledge, there is nothing comparable out there. Let’s take a look at a simple example. You can find the code at https://github.com/datacisions/terraform-examples. What we will do: Write a terratest to check whether a particularly labeled EC 2 instance is there; Run it an see it fail; Write the terraform code necessary to make it pass, to deploy the instance and label it. Run the test again to see it pass. Write a second, slightly more robust test for the same “component” (the EC 2 instance). […]