# Functions
Apply runs terraform apply with the given options and return stdout/stderr.
ApplyE runs terraform apply with the given options and return stdout/stderr.
Destroy runs terraform destroy with the given options and return stdout/stderr.
DestroyE runs terraform destroy with the given options and return stdout/stderr.
FormatArgs converts the inputs to a format palatable to terraform.
FormatTerraformArgs will format multiple args with the arg name (e.g.
FormatTerraformBackendConfigAsArgs formats the given variables as backend config args for Terraform (e.g.
FormatTerraformLockAsArgs formats the lock and lock-timeout variables -lock, -lock-timeout.
FormatTerraformVarsAsArgs formats the given variables as command-line args for Terraform (e.g.
Get calls terraform get and return stdout/stderr.
GetCommonOptions extracts commons terraform options.
GetE calls terraform get and return stdout/stderr.
GetExitCodeForTerraformCommand runs terraform with the given arguments and options and returns exit code.
GetExitCodeForTerraformCommandE runs terraform with the given arguments and options and returns exit code.
Init calls terraform init and return stdout/stderr.
InitAndApply runs terraform init and apply with the given options and return stdout/stderr from the apply command.
InitAndApplyE runs terraform init and apply with the given options and return stdout/stderr from the apply command.
InitAndPlan runs terraform init and plan with the given options and return stdout/stderr from the apply command.
InitAndPlanE runs terraform init and plan with the given options and return stdout/stderr from the apply command.
InitE calls terraform init and return stdout/stderr.
Output calls terraform output for the given variable and return its value.
OutputAll calls terraform output returns all values as a map.
OutputListE calls terraform output and returns all the outputs as a map.
OutputE calls terraform output for the given variable and return its value.
OutputForKeysE calls terraform output for the given key list and returns values as a map.
OutputForKeysE calls terraform output for the given key list and returns values as a map.
OutputList calls terraform output for the given variable and returns its value as a list.
OutputListE calls terraform output for the given variable and returns its value as a list.
OutputMap calls terraform output for the given variable and returns its value as a map.
OutputMapE calls terraform output for the given variable and returns its value as a map.
OutputRequired calls terraform output for the given variable and return its value.
OutputRequiredE calls terraform output for the given variable and return its value.
PlanExitCode runs terraform apply with the given options and returns the detailed exitcode.
PlanExitCodeE runs terraform apply with the given options and returns the detailed exitcode.
RunTerraformCommand runs terraform with the given arguments and options and return stdout/stderr.
RunTerraformCommandE runs terraform with the given arguments and options and return stdout/stderr.
WorkspaceSelectOrNew runs terraform workspace with the given options and the workspace name and returns a name of the current workspace.
WorkspaceSelectOrNewE runs terraform workspace with the given options and the workspace name and returns a name of the current workspace.
# Constants
DefaultErrorExitCode is the exit code returned when terraform command fails.
DefaultSuccessExitCode is the exit code returned when terraform command succeeds.
TerraformPlanChangesPresentExitCode is the exit code returned by terraform plan detailed exitcode when changes are present.
# Type aliases
EmptyOutput is an error that occurs when an output is empty.