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:
Han Tuzun 2017-10-29 22:26:00 +02:00 committed by GitHub
parent 982268df04
commit dca471d597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 8 deletions

View File

@ -1,10 +1,9 @@
# Compiled files
# Local .terraform directories
**/.terraform/*
# .tfstate files
*.tfstate
*.tfstate.*.backup
*.tfstate.backup
*.tfstate.*
# Module directory
.terraform/
# Variable values for development
terraform.tfvars
# .tfvars files
*.tfvars