terraform-dev

Implement, validate, review, or troubleshoot Terraform and OpenTofu code.

Updated Jul 10, 2023
One-click install
npx skills add https://github.com/iamtatsuki05/dotfiles --skill terraform-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-dev
Source: https://github.com/iamtatsuki05/dotfiles/tree/main/dotfiles/.agent/skills/terraform-dev
Command: npx skills add https://github.com/iamtatsuki05/dotfiles --skill terraform-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Terraform development and operations often struggle with designing, validating, and maintaining infrastructure as code. This skill provides comprehensive guidance to implement, refactor, validate, review, or troubleshoot Terraform/OpenTofu code, modules, providers, variables, state, plans, imports, and security considerations.

Core Features & Use Cases

  • Pre-implementation checks and project structure guidance (versions.tf, terraform.tf, backend.tf, .terraform-version, terragrunt.hcl, .tflint.hcl)
  • Modular design and best practices for writing reusable Terraform modules
  • Safe workflows for plan, review, and restricted apply with guardrails and testing
  • Extensive references and examples to accelerate Terraform work

Quick Start

Describe a Terraform project scope and walk through plan, validation, and review steps.

Frequently Asked Questions about terraform-dev

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

FAQPage Schema
How do I validate Terraform modules and enforce infrastructure as code best practices?

To validate Terraform modules, enforce an explicit project structure with files like versions.tf, backend.tf, and .tflint.hcl, alongside safe plan-before-apply guardrails. This ensures reusable module design, proper state management, and security hardening across development and production environments.

What is the best way to structure a Terraform project for state management and modular design?

The best way to structure a Terraform project is using an explicit file layout including versions.tf, terraform.tf, backend.tf, and terragrunt.hcl. This structure streamlines module design, centralizes state management, and applies comprehensive best practices for any project size.

Can I use OpenTofu code with these Terraform validation and troubleshooting workflows?

Yes, you can use OpenTofu code with these workflows. The guidance explicitly helps engineers implement, validate, review, and troubleshoot both Terraform and OpenTofu code, including modules, providers, variables, and state changes across any sized project.

How do I troubleshoot Terraform state changes and plan reviews safely?

Troubleshoot Terraform state changes and plan reviews safely by applying safe plan-before-apply guardrails. This workflow includes pre-implementation checks, backend configuration validation, and comprehensive examples to review imports and state modifications accurately.

Does this Terraform development guidance work for large production environments?

Yes, this Terraform development guidance applies across projects of any size, including large production environments. It covers module design, state management, backend configuration, and security hardening to ensure robust infrastructure as code from development to production.