The terramate
block
Use the terramate
block to define project-wide configurations. The terramate
block is usually defined in the terramate.tm.hcl
file(or any file of your choice at the project's root) and overrides any defaults by Terramate.
Arguments
required_version
: specify the Terramate version to be used inside a project. More details about this attribute are here.config
: define project-wide configurations in this block.
Syntax
hcl
terramate {
required_version = "terramate-version"
config {
git {
# Git configuration
default_remote = "origin"
default_branch = "main"
# Safeguard
check_untracked = false # Deprecated as of v0.4.5 (use terramate.config.disable_safeguards instead)
check_uncommitted = false # Deprecated as of v0.4.5 (use terramate.config.disable_safeguards instead)
check_remote = false # Deprecated as of v0.4.5 (use terramate.config.disable_safeguards instead)
}
generate {
hcl_magic_header_comment_style = "#"
}
run {
check_gen_code = false # Deprecated as of v0.4.5 (use terramate.config.disable_safeguards instead)
env {
TF_PLUGIN_CACHE_DIR = "/some/path/etc"
}
}
cloud {
organization = "cloud-org-name"
}
}
}