Skip to content

Commit 36ce3a8

Browse files
authored
Exclude *.tfvars files (#3452)
Co-authored-by: Kevin Cochran <[email protected]>
1 parent eea2893 commit 36ce3a8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Terraform.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
# Crash log files
99
crash.log
1010

11-
# Ignore any .tfvars files that are generated automatically for each Terraform run. Most
12-
# .tfvars files are managed as part of configuration and so should be included in
13-
# version control.
11+
# Exclude all .tfvars files, which are likely to contain sentitive data, such as
12+
# password, private keys, and other secrets. These should not be part of version
13+
# control as they are data points which are potentially sensitive and subject
14+
# to change depending on the environment.
1415
#
15-
# example.tfvars
16+
*.tfvars
1617

1718
# Ignore override files as they are usually used to override resources locally and so
1819
# are not checked in

0 commit comments

Comments
 (0)