mirror of
https://github.com/github/gitignore
synced 2024-11-22 19:54:22 +01:00
Update Terraform.gitignore
Improvements: * `.terraform` directories could be created in any subdirectory when user runs `terraform init`. * Quite an interesting variations of`.tfstate` files are created by Terraform such as `.*.tfstate.d` or `.*.tfstate.lock.info`. It's best not to name any file with `*.tfstate.*` pattern. * `*.tfvars` files often contain private data and not supposed to be committed.
This commit is contained in:
parent
982268df04
commit
dca471d597
@ -1,10 +1,9 @@
|
|||||||
# Compiled files
|
# Local .terraform directories
|
||||||
|
**/.terraform/*
|
||||||
|
|
||||||
|
# .tfstate files
|
||||||
*.tfstate
|
*.tfstate
|
||||||
*.tfstate.*.backup
|
*.tfstate.*
|
||||||
*.tfstate.backup
|
|
||||||
|
|
||||||
# Module directory
|
# .tfvars files
|
||||||
.terraform/
|
*.tfvars
|
||||||
|
|
||||||
# Variable values for development
|
|
||||||
terraform.tfvars
|
|
||||||
|
Loading…
Reference in New Issue
Block a user