chore: Clean up Terraform/Tofu artifacts and improve .gitignore
Remove accidentally committed tfplan file and obsolete backup files
from the tofu/ directory.
Changes:
- Remove tofu/tfplan from repository (binary plan file, should not be tracked)
- Delete terraform.tfvars.bak (old private network config, no longer needed)
- Delete terraform.tfstate.1768302414.backup (outdated state from Jan 13)
- Update .gitignore to prevent future commits of:
- tfplan files (tofu/tfplan, tofu/*.tfplan)
- Numbered state backups (tofu/terraform.tfstate.*.backup)
Security Assessment:
- tfplan contained infrastructure state (server IPs) but no credentials
- No sensitive tokens or passwords were exposed
- All actual secrets remain in SOPS-encrypted files only
The tfplan was only in commit b6c9fa6 (post-workshop state) and is now
removed going forward.
🤖 Generated with Claude Code (https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
e092931cb7
commit
27d59e4cd3
2 changed files with 3 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -12,8 +12,11 @@ tofu/.terraform/
|
||||||
tofu/.terraform.lock.hcl
|
tofu/.terraform.lock.hcl
|
||||||
tofu/terraform.tfstate
|
tofu/terraform.tfstate
|
||||||
tofu/terraform.tfstate.backup
|
tofu/terraform.tfstate.backup
|
||||||
|
tofu/terraform.tfstate.*.backup
|
||||||
tofu/*.tfvars
|
tofu/*.tfvars
|
||||||
!tofu/terraform.tfvars.example
|
!tofu/terraform.tfvars.example
|
||||||
|
tofu/*.tfplan
|
||||||
|
tofu/tfplan
|
||||||
|
|
||||||
# Ansible
|
# Ansible
|
||||||
ansible/*.retry
|
ansible/*.retry
|
||||||
|
|
|
||||||
BIN
tofu/tfplan
BIN
tofu/tfplan
Binary file not shown.
Loading…
Add table
Reference in a new issue