terraform

Manage Terraform infrastructure-as-code with remote state, module design, and CI guardrails.

68|19|Updated Nov 21, 2025
One-click install
npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill terraform-bobmatnyc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform
Source: https://github.com/bobmatnyc/claude-mpm-skills/tree/main/universal/infrastructure/terraform
Command: npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill terraform-bobmatnyc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexities and risks associated with managing cloud infrastructure as code, ensuring safe provisioning, environment standardization, and robust CI/CD guardrails.

Core Features & Use Cases

  • Safe Infrastructure Provisioning: Implement best practices for Terraform workflows, including remote state management, locking, and environment separation.
  • Module Design & Composition: Learn patterns for creating reusable and maintainable Terraform modules.
  • CI Guardrails: Establish automated checks and approvals for plan and apply operations to prevent unintended changes.
  • Use Case: Ensure that all production infrastructure changes are reviewed via a CI pipeline, plans are explicitly approved, and destructive operations are prevented by default.

Quick Start

Use the terraform skill to initialize the project, plan changes, and apply them safely.

Frequently Asked Questions about terraform

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Terraform remote state safely across multiple environments?

Terraform remote state management requires environment isolation and state locking to prevent concurrent modifications. This Skill provides patterns for separating environments and securing state files to ensure safe infrastructure provisioning.

What is the best way to structure reusable Terraform modules for infrastructure provisioning?

Reusable Terraform modules require consistent design patterns for maintainability and composition. This Skill outlines module design patterns that enable safe infrastructure-as-code management and standardize resource provisioning across projects.

How do I add CI guardrails for Terraform plan and apply operations?

CI guardrails for Terraform automate plan and apply approvals to prevent unintended infrastructure changes. This Skill establishes automated checks requiring explicit approvals and blocking destructive operations by default within CI pipelines.

Do I need the Terraform CLI to manage infrastructure as code with this approach?

Yes, the Terraform CLI is required to execute infrastructure-as-code workflows using this Skill. You must also adhere to best practices for state safety, code reviews, and drift control to manage cloud resources securely.

How does infrastructure drift control work with Terraform CI pipelines?

Infrastructure drift control in Terraform CI pipelines detects configuration changes outside the standard workflow. This Skill implements plan and apply guardrails that review infrastructure changes via CI to prevent unintended modifications.

Can I prevent destructive infrastructure changes when running Terraform apply?

Yes, you can prevent destructive infrastructure changes during Terraform apply by implementing CI guardrails. This Skill establishes automated checks that require explicit approvals for plans and block destructive operations by default.