Expand description
OpenTofu infrastructure validation step
This module provides the ValidateInfrastructureStep which handles OpenTofu
validation by executing tofu validate. This step validates the syntax and
internal consistency of configuration files without creating a plan or applying changes.
§Key Features
- Configuration syntax validation and error detection
- Internal consistency checks for resource definitions
- Provider schema validation against installed providers
- Integration with
OpenTofuClientfor command execution
§Validation Process
The step executes tofu validate which:
- Validates syntax of all
.tfconfiguration files - Checks for missing required arguments and invalid attribute names
- Validates resource and data source configurations against provider schemas
- Ensures internal consistency of variable references and expressions
This step should be run after initialization but before planning to catch configuration errors early in the workflow.
Structs§
- Validate
Infrastructure Step - Simple step that validates
OpenTofuconfiguration by executingtofu validate