Problem Description
The current .gitignore file is missing rules to ignore Terraform variable files (*.tfvars). These files typically contain sensitive information such as:
- API keys and secrets
- Service principal credentials
- Other sensitive configuration data
Without adding these files to .gitignore, sensitive information may be accidentally committed to the repository.
Proposed Solution
Add the following rules to the Terraform section of .gitignore:
tignore
Terraform variable files (keep example files)
.tfvars
!.tfvars.exampleThis rule will:
- ✅ Ignore all
*.tfvars files (containing sensitive information)
- ✅ Keep
*.tfvars.example files (as templates for other developers)