Working with blocks
A block is one instance of a block template in a scope. Its values describe desired configuration; its template supplies the module, form, and validation. External resources are changed through diff and apply.
Create and edit
Choose Create block, select a template, enter a name, and fill in the generated fields. The name accepts
1–100 characters, beginning with a letter or _, followed by letters, digits, _, or -.
Required fields must be supplied. Optional fields may be unset; defaults can come from the form or Terraform module. Fields marked locked are internal values controlled by the template/validator. Provider selectors choose a configured provider; block selectors choose a related block from the same scope.
Saving validates the configuration but does not apply it. A validation failure leaves the save unsuccessful; correct highlighted fields, or ask the owner about a custom validator error. Terraform errors encountered later in a diff are separate from form validation errors.
Status and validation
| Status | Meaning |
|---|---|
new | Newly created block that does not yet exist in the IaC state. |
changed | Edited block, or a previously applied block for which a diff found changes. |
applied | Block recorded as having no pending changes during diff/apply reconciliation. |
These are recorded statuses, not continuous monitoring. A diff can mark a new or changed block applied when it
finds no changes, even without an apply job. Calculate a fresh diff to assess current infrastructure.
Renaming a block changes its Terraform module address. Review the resulting plan carefully: resources can be proposed for removal and creation rather than simply renamed.
Secrets
Secret strings are masked when you read a block. The form distinguishes a defined secret from an unset one. When editing, keep the existing secret unless you deliberately replace or clear it. A required secret cannot be cleared to a missing value. Secret masking does not imply that Terraform state or operational output is secret-free.
Outputs
A block’s outputs are the values its Terraform module declares with output, such as resource IDs or endpoints.
InfraBuffet records them after each successful apply that covers the block, replacing the previous set. Calculating a
diff does not change them. A block that has never been applied has no outputs. Outputs are read-only, and outputs
the module marks sensitive are not recorded. The block dialog’s Outputs tab shows them as YAML or JSON.
Dependencies
A block field refers to another block’s module output, not a copy of its current output value. Both blocks must be in the same scope, and cycles are rejected. Dependencies affect Terraform ordering and can broaden a targeted plan. If a referenced block’s output changes, the dependent block can also acquire changes.
The deletion preview identifies references that block removal. Update dependent blocks first rather than assuming that deleting a block will automatically rewrite their inputs.
Delete and decommission
Deleting a block removes its desired configuration from InfraBuffet. It does not immediately destroy the external resources. Use a whole-scope diff to see removals for resources still recorded in state, then review and apply them. A targeted plan for unrelated remaining blocks is not a substitute for that whole-scope review.