devops14 aktive RegelnGeprüft am 2026-09-30
Terraform .gitignore Vorlage
Terraform local state files (.tfstate), provider cache (.terraform/), and crash logs. Deterministisch mit Mustern des offiziellen GitHub-Repositorys zusammengeführt, um dein Projekt sauber von Abhängigkeitsordnern, Build-Artefakten und lokalen Umgebungsvariablen zu halten.
Interaktiver Stack-Generator
Im vollständigen Generator öffnen/
Search for templates
Schnell hinzufügen:
Ausgewählt1
Terraform
Ausgewählte Vorlagen (1)
Terraform
devops
Terraform local state files (.tfstate), provider cache (.terraform/), and crash logs
#terraform#tf#opentofu
.gitignore
14 Regeln•1 Vorlage
### Terraform #### 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.tf.json*_override.tf*_override.tf.json # Ignore transient lock info files created by terraform apply.terraform.tfstate.lock.info # Include override files you do wish to add to version control using negated pattern# !example_override.tf # Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan# example: *tfplan* # Ignore CLI configuration files.terraformrcterraform.rc # Optional: ignore graph output files generated by `terraform graph`# *.dot # Optional: ignore plan files saved before destroying Terraform configuration# Uncomment the line below if you want to ignore planout files.# planout 46 Zeilen•UTF-8•LF
Deterministische Pipeline
Quellcode: Terraform .gitignore
Crawlbare offizielle Upstream-Vorlageterraform.gitignore•44 lines•UTF-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.tf.json*_override.tf*_override.tf.json # Ignore transient lock info files created by terraform apply.terraform.tfstate.lock.info # Include override files you do wish to add to version control using negated pattern# !example_override.tf # Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan# example: *tfplan* # Ignore CLI configuration files.terraformrcterraform.rc # Optional: ignore graph output files generated by `terraform graph`# *.dot # Optional: ignore plan files saved before destroying Terraform configuration# Uncomment the line below if you want to ignore planout files.# planoutWichtige Ausschlussmuster im Überblick
Caches & temporäre Dateien
Ignoriert Compiler-Caches, Test-Coverage-Daten und temporäre Arbeitsdateien, um das Repository schlank zu halten.
crash.logcrash.*.log
Herkunft & Lizenzprüfung
Quelle:: Offizielle GitHub-gitignore (main)
Lizenz:: CC0-1.0
Platziere diese Datei unter dem Namen .gitignore im Stammverzeichnis deines Projekts. Die Änderungen greifen sofort für alle neuen und nicht getrackten Dateien.