Skip to content

Scaffolding and Code Generation ​

Catalyst enables a guided flow:

  1. Scaffold a Bundle
  • Run terramate scaffold to select a Bundle (from local or remote collections) and provide inputs via prompts.
  • The command writes a Bundle Instantiation file (HCL or YAML) at the location defined by the bundle’s scaffolding configuration.
  1. Generate code
  • Run terramate generate. With bundles present, this will:
    • Create Bundle Stacks if they do not already exist
    • Generate Terraform code and files in those stacks
    • Preserve existing stack metadata (stack configuration is not changed)
    • Remove generated code if the bundle instantiation is removed, without deleting stacks
  1. Plan/apply with your normal tooling
  • The generated code is plain Terraform/OpenTofu and works with your existing pipelines and policy engines.

Flow diagram ​