terraform

Automate Terraform workflow design, validation, and safe apply decisions.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/led8/.codex --skill terraform-led8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform
Source: https://github.com/led8/.codex/tree/main/skills/terraform
Command: npx skills add https://github.com/led8/.codex --skill terraform-led8

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Automates Terraform workflow guidance to make infrastructure as code safer and more predictable.

Core Features & Use Cases

  • Module design and style guidance for clean, reusable configurations.
  • State and backend guidance to enforce remote state with locking and safe drift handling.
  • Plan and apply discipline with saved plans and guarded execution to prevent accidental changes.
  • Use cases include creating new infrastructure, refactoring modules, and enforcing team governance.

Quick Start

Initialize a Terraform project, format and validate configuration, generate a plan, and apply it only if the plan is approved.

Frequently Asked Questions about terraform

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

FAQPage Schema
What is the best way to manage Terraform state and prevent drift in team environments?

To enforce plan and apply discipline in Terraform, always generate a saved plan and apply guarded execution to prevent accidental changes. This ensures safe infrastructure as code application and predictable team governance.

How do I structure Terraform modules for clean and reusable infrastructure configurations?

To structure Terraform modules for reusable infrastructure, follow module design and style guidance to create clean configurations. This enables safe refactoring and consistent infrastructure as code workflows across team environments.

Why should I avoid committing Terraform state files and sensitive credentials to version control?

You should avoid committing Terraform state files and sensitive credentials because they expose infrastructure secrets and risk accidental state corruption. Remote state with locking safely manages this data while preventing team conflicts.

Does this Terraform workflow guidance apply to creating new infrastructure and refactoring modules?

Yes, this Terraform workflow guidance applies directly to creating new infrastructure and refactoring modules. It automates workflow design, validation, and safe apply decisions to enforce team governance and predictable changes.

What are the limitations of running Terraform apply without a saved plan?

Running Terraform apply without a saved plan removes plan and apply discipline, risking accidental infrastructure changes. Applying only approved plans enforces safe execution and prevents unintended modifications to team environments.