toptal / gitignore.io

Create useful .gitignore files for your project
https://www.toptal.com/developers/gitignore
MIT License
8.21k stars 623 forks source link

Commit .tfvars files #638

Open jamesgeddes opened 4 months ago

jamesgeddes commented 4 months ago

The Terraform template1, 2 is currently set to ignore all .tfvars files.

# 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

Examples provided by Terraform Best Practices show that it is recommended to,

This ensures modularity and scalability.

Allow terraform.tfvars files to be included in a repo.