Terraform/Tofu
Wrappers to run Terraform and Tofu commands
Functions
[terraform|tofu]_ensure(min_version=None)
Ensure that the terraform/tofu executable present, and optionally makes sure, that it is a least min_version.
[terraform|tofu]_init(path, args=[], env=None)
Runs terraform/tofu init in path with extra arguments args and environment env.
[terraform|tofu]_apply(path, apply=False, args=[], env=None)
Runs terraform/tofu apply in path with extra arguments args and environment env. If apply is True apply will be started with -auto-approve.
[terraform|tofu]_has_output(path, output)
Returns True if terraform/tofu at path has output named output.
[terraform|tofu]_get_output(path, output)
Returns content of output from terraform/tofu at path.
[terraform|tofu]_print_output(path)
Prints terraform/tofu output from path as key value pairs.
output