]> source.dussan.org Git - gitignore.git/commitdiff
Ignore lock info files in terraform `.gitignore` 4434/head
authorGianluca Recchia <contact@brainplot.io>
Mon, 22 Apr 2024 09:27:20 +0000 (11:27 +0200)
committerGitHub <noreply@github.com>
Mon, 22 Apr 2024 09:27:20 +0000 (11:27 +0200)
This is recommended by the official Style Guide here:
https://developer.hashicorp.com/terraform/language/style#gitignore.

Terraform.gitignore

index 9b8a46e692b4c85209a91563b4743c52c72b9ca3..2faf43d0a1ea88f8b3ab16ae2634d57eca63063e 100644 (file)
@@ -23,6 +23,9 @@ override.tf.json
 *_override.tf
 *_override.tf.json
 
+# Ignore transient lock info files created by terraform apply
+.terraform.tfstate.lock.info
+
 # Include override files you do wish to add to version control using negated pattern
 # !example_override.tf