Skip to main content

Module tofu

Module tofu 

Source
Expand description

OpenTofu infrastructure management wrapper

This module provides a comprehensive interface for managing infrastructure using OpenTofu (the open-source Terraform fork), including plan, apply, destroy operations and JSON output parsing for instance information.

§Module Structure

  • client - Main OpenTofuClient for executing OpenTofu commands
  • json_parser - JSON output parsing for OpenTofu state and plan information

§Key Features

  • Full infrastructure lifecycle management (init, plan, apply, destroy)
  • State management and instance information extraction
  • Emergency cleanup operations for testing scenarios
  • Comprehensive error handling with detailed context

Re-exports§

pub use client::InstanceInfo;
pub use client::OpenTofuClient;
pub use client::OpenTofuError;
pub use json_parser::ParseError;

Modules§

client
OpenTofu client for infrastructure management
json_parser
JSON parsing utilities for OpenTofu command output

Enums§

EmergencyDestroyError
Errors that can occur during emergency destroy operations

Functions§

emergency_destroy
Emergency destroy operation for cleanup scenarios