Test infrastructure code with Terratest in 4 steps
Create a file ending in _test.go and run tests with the go test command. E.g.,
go test my_test.go.
Use Terratest to execute your real IaC tools (e.g., Terraform, Packer, etc.)
to deploy real infrastructure (e.g., servers) in a real environment (e.g., AWS).
Use the tools built into Terratest to validate that the infrastructure
works correctly in that environment by making HTTP requests, API calls, SSH connections, etc.