The vendor block β
Use the vendor block to configure how Terramate vendors external modules into your project. The vendor block can only appear once in a project and does not support labels.
For details on vendoring modules, see vendor download.
Arguments β
dir(optional, string) - The directory where vendored modules will be stored.manifest(optional, block) - Configures which files to include when vendoring.default(optional, block) - Default manifest settings.files(optional, set of strings) - Glob patterns specifying which files from the module to vendor.
Syntax β
hcl
vendor {
dir = "/modules"
manifest {
default {
files = [
"**/*.tf",
"**/*.md",
"**/LICENSE",
]
}
}
}Examples β
Vendor Terraform modules β
hcl
vendor {
dir = "/vendor/modules"
manifest {
default {
files = [
"**/*.tf",
"**/*.tf.json",
]
}
}
}