Provision → diff → apply

InfraBuffet separates recording desired configuration from changing infrastructure. An owner first prepares an infrastructure, scope, providers, and templates; an owner or a member of the scope’s consumer team then uses them.

1. Provision a block

Open your scope through Consume tab on the home page, choose Create block, select a template, and fill in its form. Save the block. InfraBuffet checks its name, field types and constraints, references, custom validation, and dependency cycles.

Saving creates an application record. It does not run Terraform or create external resources. Edit blocks in the same way when you want to change desired configuration.

2. Calculate and review the diff

Choose Diff & apply. InfraBuffet schedules a job, materializes the scope’s module configuration and stored state, and asks Terraform to calculate the proposed changes. Wait for completion and read the result. Check additions, updates, replacements, and removals.

When block output values would change, the diff shows “Block outputs will be updated.” instead of listing them. Such a plan can be applied even if no resources change, to record the new outputs.

If there are no changes, there is nothing to apply.

Whole scope or selected blocks

With no selected rows, Diff & apply plans the entire scope. A list filter does not restrict that operation to the visible blocks. To request a targeted plan, select rows and choose Diff & apply selected.

Selected IDs become Terraform module targets. Terraform can include dependencies, so selection is not a promise that only those blocks’ resources appear in the plan. Review the actual plan, and calculate a whole-scope diff afterward to see any remaining changes. An API request with omitted/null block_ids means the whole scope; an explicitly empty array selects no blocks.

3. Apply the reviewed plan

Complete the confirmation in the workflow dialog and choose Apply plan. The apply job refers to the successful diff job. Before applying, the worker calculates another plan and compares its digest with the reviewed result. If the meaningful plan changed midway, apply is rejected; calculate a new diff and review it.

This check helps prevent applying an outdated proposal. It does not make an external infrastructure transaction: providers can fail after some resources have changed. Follow the job result and inspect failures before retrying. After a successful apply, InfraBuffet refreshes the diff and records the scope’s state and block statuses.

Import existing resources

Import is an owner operation. It associates existing resource IDs with Terraform addresses instead of asking Terraform to create those resources.

  1. Create blocks whose templates describe the existing resources.
  2. Select the relevant New blocks and choose Import selected.
  3. Wait for discovery, then supply the provider-specific Resource ID for each address to import.
  4. Start import and inspect each resource’s result. Imports may partially succeed; successful imports remain in state.
  5. Calculate a new diff. Adjust configuration until it describes the imported resources before applying further changes.

Resource ID formats come from the Terraform provider. Importing does not prove the template matches the current resource configuration, and an immediate plan may propose updates or replacement.

When work fails or is interrupted

Closing the dialog lets the job continue; reopen View active job to monitor it. Scope jobs hold a lock to prevent conflicting application operations. Use the job’s cancellation action when appropriate, then check the external resources and calculate a fresh diff. Cancellation does not undo changes already made.

See jobs and results for statuses and recovery. Keep the scope’s state intact throughout recovery.