We have just seen that applying changes to an infrastructure with Terraform is mainly done with three commands: the init, plan, and apply commands. But Terraform has other very practical and important commands in order to manage the best life cycle of our infrastructure, and the question of how to execute Terraform in an automation context such as in a CI/CD pipeline must also be considered.
Among the other operations that can be done on an infrastructure is cleaning up resources by removing them, and this is done either to better rebuild or to remove temporary infrastructure.