Top 7 Trickiest OpenTofu Features

FeatureConfusion LevelCommon PitfallsScalr Advantage
For_each vs CountHigh (20-25%)Index shifting problem with countEnhanced dependency visualization
Dynamic BlocksMedium-High (15-20%)Iterator scope, nesting limitationsClear plan output for generated resources
Complex ExpressionsVery High (30-40%)Readability, maintainabilityState explorer for debugging expressions
Module DesignHigh (25%)Over-abstraction, tight couplingRegistry for discoverable, versioned modules
Locals vs VariablesMediumScope confusion, reference syntaxPolicy engine for structure validation
TemplatefileMediumTemplate syntax, variable passingPlan-time template rendering inspection
WorkspacesMediumInappropriate use for environment separationTrue environment isolation with access controls