Data sources and files

A data source stores the module and validator files used by block templates. It belongs to a team. Templates can use module and validator files from different data sources, but they must belong to the infrastructure’s owning team.

The two source types are Local, whose files you edit in InfraBuffet, and Git, whose files are imported from a repository. Jobs use the stored files; a Git commit does not affect a job until the source is synchronized.

Create a data source

Choose the owning team and give the source a name such as platform-modules. The name starts with a letter or digit, contains only letters, digits, ., _, or -, and must currently contain at least two characters, up to 255. The type cannot be changed after creation.

Local

Create files with relative paths such as modules/network/main.tf or validators/network.js. Paths must remain inside the source; absolute paths and ../ escapes are rejected. File paths are normalized and limited to 255 characters. You can create, edit, and delete local files.

Git

Configure an HTTP or HTTPS repository URL, a branch, optional username/password credentials, and include patterns. SSH URLs are not supported. A repository access token can occupy the password field when the Git server accepts that authentication method.

Include patterns match repository-relative paths. For example:

**/*.tf
validators/*.js

Patterns are alternatives: a file is included if any pattern matches. An empty pattern list imports no files. Include every file a module requires, such as templates or scripts, as well as its Terraform files. An invalid pattern will not match files.

Run Sync and wait for its job to finish. Synchronization creates or updates included files and removes stored files that disappeared or no longer match. Inspect the imported file list before configuring a template. Git files are read-only in InfraBuffet; edit them in Git and synchronize again.

Organize module paths

A layout can contain several modules and separate validators:

modules/network/main.tf
modules/network/variables.tf
modules/server/main.tf
validators/network.js

Set a template’s module path to modules/network; use . when the module occupies the source root. The module path is a directory, not the path of an individual .tf file

Editing or synchronizing shared files changes what future jobs use. Review affected scopes with a fresh diff. Source and file deletion previews show references that prevent removal; update the referencing templates first.