Skip to content

Instantly share code, notes, and snippets.

@isweluiz
Last active February 27, 2023 22:29
Show Gist options
  • Save isweluiz/d674e96e4dc0ba2994f16e76e6e7361c to your computer and use it in GitHub Desktop.
Save isweluiz/d674e96e4dc0ba2994f16e76e6e7361c to your computer and use it in GitHub Desktop.
Terraform .gitignore
# Local .terraform directories
**/.terraform/*
# Crash log files
crash.log
# Local tfstate files
*.tfstate
*.tfstate.*
# Log files
*.log
# Temp files
*.tfvars
*.tfvars.json
*.terraformrc
terraform.rc
*.retry
*.swp
# Override files
override.tf
override.tf.json
*_override.tf
*_override.tf.json
# Exclude any .tf files in
.terraform
*.tfstate
*.tfstate.backup
terraform.tfstate
ansible-pub
ssh.*
ansible-pub-aws*
ansible-pub-aws.pub
.terraform.lock.hcl
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment