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- MainOpenTofuClientfor executingOpenTofucommandsjson_parser- JSON output parsing forOpenTofustate 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
OpenTofuclient for infrastructure management- json_
parser - JSON parsing utilities for
OpenTofucommand output
Enums§
- Emergency
Destroy Error - Errors that can occur during emergency destroy operations
Functions§
- emergency_
destroy - Emergency destroy operation for cleanup scenarios