Difference between revisions of "GitHub default .gitignore for Terraform"
Jump to navigation
Jump to search
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | # .tfstate files | + | # Local .terraform directories |
− | *.tfstate | + | **/[[.terraform/]]* |
− | *.tfstate.* | + | |
+ | # .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* | ||
− | + | == Related == | |
− | + | * <code>[[.gitignore]]</code> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </ | ||
== See also == | == See also == | ||
* {{GitHub}} | * {{GitHub}} | ||
− | * {{ | + | * {{tf files}} |
[[Category:Git]] | [[Category:Git]] | ||
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 13:51, 21 May 2024
# 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*
Related[edit]
See also[edit]
- GitHub, GitHub Actions, GitHub Actions Runner, Events, CodeQL, GitHub Desktop, GitHub organization, base permissions, GitHub Copilot,
.gitignore
, GitHub Codespaces, GitHub Marketplace, GitHub Apps, GitHub Enterprise Server, GitHub CLI (gh
), Dependabot, GitHub security,.github/
, GitHub code scanning, GitHub Pages, GitHub Packages, GitHub Advanced Security, GitHub Mobile, GitHub Importer, GitHub versions - Terraform configuration files, Terraform state files:
.tf
,.tfvars
,main.tf, outputs.tf
,variables.tf
,.terraform.d/
,terraform init
,providers.tf
,.terraform/
,terraform.tfstate
,.terraform.lock.hcl
,terraform.tfstate.d, override.tf, versions.tf
Advertising: