From 4e398c95e2994134db50be30c3935c3f435933e7 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 15 Jun 2022 21:33:52 -0400 Subject: [PATCH] update gitignore for better terraform support --- .gitignore | 68 +++++++++++++++++++++++------------------------------- 1 file changed, 29 insertions(+), 39 deletions(-) diff --git a/.gitignore b/.gitignore index c32c404..1f2931b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,53 +1,43 @@ -## TERRAFORM +### Terraform +# Local .terraform directories +**/.terraform/* -# Compiled files +# .tfstate files *.tfstate -*.tfstate.backup -*.tfstate.lock.info +*.tfstate.* -# logs -*.log +# Crash log files +crash.log +crash.*.log -# Directories -.terraform/ -.vagrant/ +# Exclude all .tfvars files, which are likely to contain sensitive data, such as +# password, private keys, and other secrets. These should not be part of version +# control as they are data points which are potentially sensitive and subject +# to change depending on the environment. +*.tfvars +*.tfvars.json -# SSH Keys -*.pem +# Ignore override files as they are usually used to override resources locally and so +# are not checked in +override.tf +override.tf.json +*_override.tf +*_override.tf.json -# Backup files -*.bak +# Include override files you do wish to add to version control using negated pattern +!example_override.tf -# Ignored Terraform files -*gitignore*.tf +# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan +# example: *tfplan* -# Ignore Mac .DS_Store files -.DS_Store +# Ignore CLI configuration files +.terraformrc +terraform.rc -# Ignored vscode files -.vscode/ - -# Ignore Any Generated JSON Files -operations/automation-script/apply.json -operations/automation-script/configversion.json -operations/automation-script/run.template.json -operations/automation-script/run.json -operations/automation-script/variable.template.json -operations/automation-script/variable.json -operations/automation-script/workspace.template.json -operations/automation-script/workspace.json -operations/sentinel-policies-scripts/create-policy.template.json -operations/sentinel-policies-scripts/create-policy.json -operations/variable-scripts/variable.template.json -operations/variable-scripts/variable.json - -# Sentinel runtime directory -.sentinel - - -### ANSIBLE +### Ansible *.retry + ### OTHER *.env .env