Skip to content

Commit f960107

Browse files
committed
Update gitignore
1 parent 54c25e5 commit f960107

File tree

5 files changed

+28
-1
lines changed

5 files changed

+28
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
*.bak
1515

1616
# Ignored Terraform files
17-
gitignore.tf
17+
*gitignore*.tf

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ This directory provides artifacts that can be used by operations teams using Ter
1515

1616
## cloud-management-platform
1717
This directory provides samples of how Terraform can be used to support cloud management platforms.
18+
19+
## `gitignore.tf` Files
20+
21+
You may notice some [`gitignore.tf`](operations/provision-consul/best-practices/terraform-aws/gitignore.tf) files in certain directories. `.tf` files that contain the word "gitignore" are ignored by git in the [`.gitignore`](./.gitignore) file.
22+
23+
If you have local Terraform configuration that you want ignored (like Terraform backend configuration), create a new file in the directory (separate from `gitignore.tf`) that contains the word "gitignore" (e.g. `backend.gitignore.tf`) and it won't be picked up as a change.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# `.tf` files that contain the word "gitignore" are ignored
2+
# by git in the `.gitignore` file at the root of this repo.
3+
4+
# If you have local Terraform configuration that you want
5+
# ignored like Terraform backend configuration, create
6+
# a new file (separate from this one) that contains the
7+
# word "gitignore" (e.g. `backend.gitignore.tf`).
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# `.tf` files that contain the word "gitignore" are ignored
2+
# by git in the `.gitignore` file at the root of this repo.
3+
4+
# If you have local Terraform configuration that you want
5+
# ignored like Terraform backend configuration, create
6+
# a new file (separate from this one) that contains the
7+
# word "gitignore" (e.g. `backend.gitignore.tf`).
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# `.tf` files that contain the word "gitignore" are ignored
2+
# by git in the `.gitignore` file at the root of this repo.
3+
4+
# If you have local Terraform configuration that you want
5+
# ignored like Terraform backend configuration, create
6+
# a new file (separate from this one) that contains the
7+
# word "gitignore" (e.g. `backend.gitignore.tf`).

0 commit comments

Comments
 (0)