Skip to content
Back to skills

Terraform State Safety

ASecurity

Design safe remote Terraform/OpenTofu state: remote backend with locking, encryption, and versioning; isolate state by blast radius; keep secrets out (and treat the whole file as sensitive); and do state surgery only with a snapshot.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentsterraformbackend

Security analysis

A100/100

Scanned September 23, 2026

npx -y skills add mcorbett51090/RavenClaude --skill terraform-state-safety --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Terraform State Safety?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Terraform State Safety
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mcorbett51090-terraform-state-safety/badge)](https://www.skillsdirectory.com/skills/mcorbett51090-terraform-state-safety)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: terraform-state-safety
description: "Design safe remote Terraform/OpenTofu state: remote backend with locking, encryption, and versioning; isolate state by blast radius; keep secrets out (and treat the whole file as sensitive); and do state surgery only with a snapshot."
---

# Terraform State Safety

## The backend
**Remote + locked + encrypted + versioned.** Locking stops concurrent-apply corruption; encryption protects the secrets state captures; versioning enables recovery.

## Isolate by blast radius
Network / data / app in **separate states** — a risky app apply can't touch the VPC. One giant state = one giant blast radius.

## Secrets
Mark `sensitive` + source from a manager. Providers still write some values to state, so **treat the whole file as sensitive** (encrypt + restrict access).

## State surgery
`import` / `state mv` / `state rm`: **snapshot first**, one op, verify with a plan.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…