Skip to content

Commit

Permalink
Add .gitignore files
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenyu committed Jan 18, 2025
1 parent 05af78d commit eec4e88
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Ignore Terraform lock files
# As of Feb 2023, Terraform lock files, while well intentioned, have a tendency
# to get into a confusing state that requires recreating the lock file, which
# defeats the purpose. Moreover, lock files are per environment, which can make
# it difficult for people to upgrade dependencies (e.g. upgrade an AWS provider)
# across environments if certain environments are locked down (e.g. production).
.terraform.lock.hcl

# MacOS files
.DS_Store

# Ignore develop-specific VS code settings files
.vscode

# Ignore local environment variables which can contain environment secrets
.env
.envrc

# Python testing stuff
*__pycache__*
25 changes: 25 additions & 0 deletions infra/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Local .terraform metadata
**/.terraform/*

# .tfstate files
*.tfstate
*.tfstate.*

# Crash log files
crash.log

# 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

# Include override files you do wish to add to version control using negated pattern
#
# !example_override.tf

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*
*.plan
*.tfstate

0 comments on commit eec4e88

Please sign in to comment.