First beta of Terratest v2. The library is now split into 16 independently
consumable Go submodules, each at its own /v2 module path, so a consumer pulls
only the dependency closure of the modules it imports.
Install
Each module is versioned and fetched independently:
go get github.com/gruntwork-io/terratest/modules/aws/v2@v2.0.0-beta.1
Modules
All at github.com/gruntwork-io/terratest/modules/<name>/v2:
core, ssh, httphelper, dnshelper, docker, packer, database, opa, aws, azure,
gcp, k8s, helm, terraform, terragrunt, teststructure.
What changed from v1
- Modularization into 16 per-domain submodules. Importing one module no longer
pulls the entire SDK closure (addresses #445 and #1492). - API cutdown: removed the
cmd/binaries, thecollections/environment/git
core utilities,version-checker, andslack; deleted every v1// Deprecated:
alias. - Renames:
http-helper->httphelper,dns-helper->dnshelper,
test-structure->teststructure. - Minimum Go 1.26.
Migrating from v1
Rewrite import paths once: .../modules/<name> -> .../modules/<name>/v2 (plus
the three renames above). v1 is frozen at v1.0.1 and remains available; pinned
v1 consumers are unaffected.
Beta
This is a prerelease for soak testing ahead of v2.0.0. Please file issues before GA.