devops18 active rulesVerified 2026-09-30
Open Tofu .gitignore Template
Standard Open Tofu gitignore template from upstream github/gitignore collection. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.
Interactive Stack Generator
Open in Full Generator/
Search for templates
Quick add:
Selected1
Open Tofu
Selected Templates (1)
Open Tofu
devops
Standard Open Tofu gitignore template from upstream github/gitignore collection
#opentofu
.gitignore
### Open Tofu #### Local .terraform directories**/.terraform/* # .tfstate files*.tfstate*.tfstate.* # Crash log filescrash.logcrash.*.log # Exclude all .tfvars files, which are likely to contain sensitive data, such as# password, private keys, and other secrets. These should not be part of version# control as they are data points which are potentially sensitive and subject# to change depending on the environment.*.tfvars*.tfvars.json # Ignore override files as they are usually used to override resources locally and so# are not checked inoverride.tfoverride.tofuoverride.tf.jsonoverride.tofu.json*_override.tf*_override.tofu*_override.tf.json*_override.tofu.json # Ignore transient lock info files created by tofu apply.terraform.tfstate.lock.info # Include override files you do wish to add to version control using negated pattern# !example_override.tf# !example_override.tofu # Include tfplan files to ignore the plan output of command: tofu plan -out=tfplan# example: *tfplan* # Ignore CLI configuration files.terraformrcterraform.rc 18 rules1 template44 linesUTF-8LF
Deterministic
Raw Open Tofu .gitignore
Crawlable upstream source templateopentofu.gitignore43 linesUTF-8
# Local .terraform directories**/.terraform/* # .tfstate files*.tfstate*.tfstate.* # Crash log filescrash.logcrash.*.log # Exclude all .tfvars files, which are likely to contain sensitive data, such as# password, private keys, and other secrets. These should not be part of version# control as they are data points which are potentially sensitive and subject# to change depending on the environment.*.tfvars*.tfvars.json # Ignore override files as they are usually used to override resources locally and so# are not checked inoverride.tfoverride.tofuoverride.tf.jsonoverride.tofu.json*_override.tf*_override.tofu*_override.tf.json*_override.tofu.json # Ignore transient lock info files created by tofu apply.terraform.tfstate.lock.info # Include override files you do wish to add to version control using negated pattern# !example_override.tf# !example_override.tofu # Include tfplan files to ignore the plan output of command: tofu plan -out=tfplan# example: *tfplan* # Ignore CLI configuration files.terraformrcterraform.rc Key Pattern Breakdown
Cache & Temporary Files
Ignores compiler caches, test runner coverage data, and transient temporary scratch files.
crash.logcrash.*.log
Source & Verification
Source:: GitHub gitignore (main)
License:: CC0-1.0
Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.