☁️ DevOps & Cloud · Infrastructure as Code
Manage IaC state safely as a team
Remote state with locking, environment isolation, and least-privilege access so nobody corrupts prod.
intermediate~30 minDevOps EngineersSREsCloud Architects
Steps
- 1Remote backends with locking enabled; never local state for shared infra
- 2 Separate state per environment and blast-radius boundary
- 3Plan applies through CI with reviewed plan artifacts
- 4Restrict who can apply to prod; everyone can plan against staging copies
- 5Backup state versions; rehearse recovery from zero
- 6Import legacy resources deliberately with documentation
Common Pitfalls
- ▲Shared state across envs turning staging apply into prod apply
- ▲-replace used casually against stateful resources
Commands
Install with skills CLI
$ npx skills add aniruddhaadak80/skills --skill infrastructure-as-code-state-managementInstall globally
$ npx skills add aniruddhaadak80/skills --skill infrastructure-as-code-state-management -gTags
#terraform#state#collaboration#devops-cloud#infrastructure-as-code