[Learn Lab] Test your Terraform configuration

preview_player
Показать описание
Terraform 1.6 lets you write unit and integration tests for your configuration and run them before deploying infrastructure, with the new “terraform test” command.
In this Learn Lab, you will write tests using the new test file syntax. Then you will develop your own testing strategy using the many ways Terraform supports deployment validation: check blocks, preconditions, postconditions, and now tests.

Speaker: Brian McClain

HashiCorp provides infrastructure automation software for multi-cloud environments, enabling enterprises to unlock a common cloud operating model to provision, secure, connect, and run any application on any infrastructure. HashiCorp tools Vagrant, Packer, Terraform, Vault, Consul, Nomad, Boundary, and Waypoint allow organizations to deliver applications faster by helping enterprises transition from manual processes and ITIL practices to self-service automation and DevOps practices.

Рекомендации по теме
Комментарии
Автор

Hi! Can we run tests for modules with tags instead of branches? It is not possible to change anything in the configuration.

SeeRay
Автор

how can we get code coverage report ( eg. how much test % are passed or fail ?)

lokendrajain
Автор

How can we utilize Terraform test to assess modifications or additions to an existing infrastructure, such as introducing a new
VM or modifying existing ones, especially when there are already 50 VMs in the environment? This scenario arises frequently when clients are reluctant to allocate a separate testing environment or disrupt the existing setup.

anooppc