Scaffolding and Code Generation β
Catalyst enables a guided flow:
- Scaffold a Bundle
- Run
terramate scaffoldto 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.
- 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
- Plan/apply with your normal tooling
- The generated code is plain Terraform/OpenTofu and works with your existing pipelines and policy engines.
Flow diagram β
Related guides and references β
- Howβto: Instantiate a bundle via CLI
- Reference: Bundle scaffolding config
- Reference:
terramate generate