terramate component create β
Convert a Terraform/OpenTofu module into a Catalyst Component by generating initial component metadata and inputs.
Usage β
sh
terramate component create [path]Arguments β
| Argument | Description | Default |
|---|---|---|
path | Path to the Terraform/OpenTofu module directory. | . (current directory) |
Path resolution β
- Relative paths (e.g.
modules/s3-module) are resolved from the current working directory (respects the-Cflag). - Absolute paths (e.g.
/modules/s3-module) are resolved relative to the project root, not the filesystem root. - Empty or
.defaults to the current working directory.
The resolved path must be within the project root.
Examples β
sh
# Point to a module using a relative path
terramate component create modules/s3-module
# Run inside the module directory
cd path/to/module
terramate component create .
# Point to a module using a project-relative absolute path
terramate component create /modules/s3-module
# Combine with -C flag
terramate -C modules/ component create s3-moduleBehavior β
- Infers component inputs from Terraform/OpenTofu module variables.
- Creates initial component metadata.
- Produces files required to reference the component from a Bundle.
See also β
- Reference: Component Definition