What problem does it solve?
This knowledge patch prevents outdated or incorrect Terraform and OpenTofu usage by providing concise, versioned guidance about new language features, lifecycle semantics, and provider behaviors that models often miss after training cutoffs.
Core Features & Use Cases
- Ephemeral secrets and write-only arguments: Explains ephemeral variables, ephemeral resources, ephemeralasnull, and _wo attributes for secrets that must not be persisted to state.
- Validation, imports, and identity: Details cross-object variable validation, structured identity imports, and bulk import/query workflows to avoid fragile import patterns.
- Stacks, Actions, and OpenTofu divergences: Covers component-based Stacks (HCP), provider-defined Actions (day-2 operations), and OpenTofu-specific features like enabled lifecycle, const variables, and state encryption differences.
- Use Case: Use this patch to check module refactors, secret handling changes, import migrations, or when switching between Terraform and OpenTofu to avoid breaking changes and unsafe state manipulations.
Quick Start
Load the terraform-knowledge-patch and ask the assistant to analyze your Terraform/OpenTofu configuration for deprecated APIs, ephemeral secret handling, and provider-specific import guidance.