state: add SOPS-encrypted terraform state to git
- SOPS + age encrypts all 101 .tfstate files (JSON-aware: keys visible, values encrypted) - scripts/state-sync: encrypt/decrypt/commit wrapper - scripts/tg: auto-decrypt before ops, auto-encrypt+commit after apply/destroy - terragrunt.hcl: -backup=- prevents backup file accumulation - .gitignore: track .tfstate.enc, ignore plaintext .tfstate - Cleaned 964MB of stale backups (state/backups/, .backup files)
This commit is contained in:
parent
7ec627f365
commit
3583994efe
106 changed files with 279468 additions and 6 deletions
4
.sops.yaml
Normal file
4
.sops.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
creation_rules:
|
||||
- path_regex: '\.tfstate(\.enc)?$'
|
||||
age: >-
|
||||
age1z64h9t3acsm2rr74pz7j4846kwj5tutx9sk78jqv46y8fln4vs2sy920ce
|
||||
Loading…
Add table
Add a link
Reference in a new issue