github.com/darmach/terratest@v0.34.8-0.20210517103231-80931f95e3ff/examples/terraform-hello-world-example/README.md (about) 1 # Terraform "Hello, World" Example 2 3 This folder contains the simplest possible Terraform module—one that just outputs "Hello, World"—to demonstrate how you 4 can use Terratest to write automated tests for your Terraform code. 5 6 Check out [test/terraform_hello_world_example_test.go](/test/terraform_hello_world_example_test.go) to see how you can 7 write automated tests for this simple module. 8 9 Note that this module doesn't do anything useful; it's just here to demonstrate the simplest usage pattern for 10 Terratest. For a slightly more complicated example of a Terraform module and the corresponding tests, see 11 [terraform-basic-example](/examples/terraform-basic-example). 12 13 14 15 16 ## Running this module manually 17 18 1. Install [Terraform](https://www.terraform.io/) and make sure it's on your `PATH`. 19 1. Run `terraform init`. 20 1. Run `terraform apply`. 21 1. When you're done, run `terraform destroy`. 22 23 24 25 26 ## Running automated tests against this module 27 28 1. Install [Terraform](https://www.terraform.io/) and make sure it's on your `PATH`. 29 1. Install [Golang](https://golang.org/) and make sure this code is checked out into your `GOPATH`. 30 1. `cd test` 31 1. `go test -v -run TestTerraformHelloWorldExample`