bobmatnyc

terraform

"Terraform infrastructure-as-code workflow patterns: state and environments, module design, safe plan/apply, drift control, and CI guardrails"

bobmatnyc 77 18 Updated 6mo ago
GitHub

Install

npx skillscat add bobmatnyc/claude-mpm-skills/terraform

Install via the SkillsCat registry.

About this skill

This skill provides guidance for using Terraform to manage infrastructure as code, covering state management, environment separation, module design, and safe deployment practices. It helps prevent common infrastructure risks such as state corruption, configuration drift, and unreviewed changes by establishing standardized workflows and CI guardrails. Developers and agents should use it when provisioning cloud resources, standardizing environments, or implementing controlled IaC pipelines.

SKILL.md

Terraform

Quick Start (workflow)

terraform init
terraform plan -out=tfplan
terraform apply tfplan

Safety Checklist

  • State: remote backend + locking; separate state per environment
  • Reviews: plan in CI; apply from a trusted runner with approvals
  • Guardrails: prevent_destroy and policy checks for prod

Load Next (References)

  • references/state-and-environments.md — backends, locking, workspaces vs separate state, drift
  • references/modules-and-composition.md — module interfaces, versioning, composition patterns
  • references/workflows-and-guardrails.md — CI plan/apply, policy-as-code, safe migrations