From 2277acb7107ee5935ca7e3d2d90311254f4ebd54 Mon Sep 17 00:00:00 2001 From: hamid-m331 Date: Fri, 10 Apr 2026 15:35:23 +0200 Subject: [PATCH] updated .gitignore with some new files and paths --- .gitignore | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index bfc9577..fa3ef0c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,18 +1,19 @@ # Local .terraform directories **/.terraform/* -# .tfstate files -*.tfstate -*.tfstate.* +# .tfstate files (VERY IMPORTANT: These contain secrets in plain text) +*.tfstate* -# Crash log files +# Crash log files and plan files crash.log +crash.*.log +*.tfplan # Ignore any `.tfvars` files that are generated automatically for each Terraform # run. Most `.tfvars` files are managed as part of configuration and so should # be included in version control. # -# example `.tfvars` +# example `.tfvars` , `*.tfvars.json` # Ignore override files as they are usually used to override resources locally # and so are not checked in @@ -33,3 +34,27 @@ override.tf.json /.vscode/ *.lock.hcl .infracost + +# OS / misc +.DS_Store + +# Terraform CLI config (may contain credentials) +.terraform.rc +terraform.rc + +# Terraform logs +terraform.log + +# Cost estimation too, estimate cost of deployment before deployment https://github.com/infracost/infracost +.infracost + +# Terragrunt (if used) https://terragrunt.com/ +.terragrunt-cache/ + +# Generic backup files created by Editors +*.backup +*.bak + +# IMPORTANT: +# Do NOT ignore this in most projects! +# .terraform.lock.hcl \ No newline at end of file