From 8f102a9d9e439501d7aeca3bced2318bb1196aab Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Sun, 21 Jan 2024 11:56:13 +0100 Subject: [PATCH] Non ignorare lo stato, ignorare i plan file. --- .gitignore | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a9e8a0c..cd27389 100644 --- a/.gitignore +++ b/.gitignore @@ -3,8 +3,9 @@ **/.terraform/* # .tfstate files -*.tfstate +# *.tfstate *.tfstate.* +!terraform.tfstate # Crash log files crash.log @@ -16,7 +17,7 @@ crash.*.log # to change depending on the environment. *.tfvars *.tfvars.json - +!*.auto.tfvars # Ignore override files as they are usually used to override resources locally and so # are not checked in override.tf @@ -34,3 +35,14 @@ override.tf.json .terraformrc terraform.rc +# output plans +*-plan.zip + + +# Ignore ssh_key_file_ref +**/ssh-key-ref-outputs.tf + +# Ignore the lock files +*.lock.hcl + +.project