Skip to content

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",
      ]
    }
  }
}