bundle
bundle prepares a portable ZIP archive of a Terraform or OpenTofu root module for assessment. It provides a file-inclusion preview so the sender can inspect what would be included.
Syntax
Section titled “Syntax”stacktoit bundle ROOT [--out FILE.zip] [--acknowledge CLASS]... [--preview]Preview a bundle
Section titled “Preview a bundle”stacktoit bundle ./terraformWithout --out, this command previews the bundle and writes no archive. --preview also suppresses writing if an output path was given.
Create a bundle
Section titled “Create a bundle”stacktoit bundle ./terraform --out ./source-bundle.zipThe bundle contains the relevant root configuration and a manifest. Selected file classes can be included by explicit acknowledgement:
stacktoit bundle ./terraform --out ./source-bundle.zip --acknowledge variable_fileAccepted opt-in classes include variable_file, referenced_input, module_downloaded and documentation. The module_local class is also accepted but does not include local modules outside the root.
Assess a SourceBundle
Section titled “Assess a SourceBundle”stacktoit assess --input bundle ./source-bundle.zip ./migrationReview the preview carefully. Bundle creation does not sanitize the contents of a file that is selected for inclusion. An existing output ZIP is not overwritten.