Difference between revisions of "GitHub default .gitignore for Terraform"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
   
 
   
 
  # Crash log files
 
  # Crash log files
  crash.log  
+
  [[crash.log]]
 
   
 
   
 
  # Ignore any .tfvars files that are generated automatically for each Terraform run. Most
 
  # Ignore any .tfvars files that are generated automatically for each Terraform run. Most
Line 18: Line 18:
 
  # Ignore override files as they are usually used to override resources locally and so
 
  # Ignore override files as they are usually used to override resources locally and so
 
  # are not checked in
 
  # are not checked in
  override.tf
+
  [[override.tf]]
 
  override.tf.json
 
  override.tf.json
 
  *_override.tf
 
  *_override.tf
Line 27: Line 27:
 
  # !example_override.tf
 
  # !example_override.tf
 
   
 
   
  # Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
+
  # Include tfplan files to ignore the plan output of command: [[terraform plan]] -out=tfplan
 
  # example: *tfplan*
 
  # example: *tfplan*
  
Line 33: Line 33:
 
== See also ==
 
== See also ==
 
* {{GitHub}}
 
* {{GitHub}}
* {{terraform}}
+
* {{tf files}}
  
  
 
[[Category:Git]]
 
[[Category:Git]]
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 11:19, 7 March 2022

# Local .terraform directories
**/.terraform/*

# .tfstate files
*.tfstate
*.tfstate.* 

# Crash log files
crash.log 

# Ignore any .tfvars files that are generated automatically for each Terraform run. Most
# .tfvars files are managed as part of configuration and so should be included in
# version control.
#
# example.tfvars

# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# 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*


See also[edit]

Advertising: