⚡AgentSkills
☁️ 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

  1. 1Remote backends with locking enabled; never local state for shared infra
  2. 2 Separate state per environment and blast-radius boundary
  3. 3Plan applies through CI with reviewed plan artifacts
  4. 4Restrict who can apply to prod; everyone can plan against staging copies
  5. 5Backup state versions; rehearse recovery from zero
  6. 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-management
Install globally
$ npx skills add aniruddhaadak80/skills --skill infrastructure-as-code-state-management -g

Tags

#terraform#state#collaboration#devops-cloud#infrastructure-as-code

Related skills

Composable modules with typed variables, sensible defaults, and outputs that compose upward.

☁️ DevOps & Cloud·~40m