terraform

Automate multi-cloud infrastructure provisioning with Terraform/OpenTofu modules and remote state.

53|1|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/cosmix/claude-code-setup --skill terraform-cosmix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform
Source: https://github.com/cosmix/claude-code-setup/tree/main/skills/terraform
Command: npx skills add https://github.com/cosmix/claude-code-setup --skill terraform-cosmix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables Infrastructure as Code using Terraform/OpenTofu to provision, manage, and version cloud resources across providers with proper state management and modular design.

Core Features & Use Cases

  • Modular IaC: Design reusable modules and providers for consistent infra definitions.
  • Remote State & Locking: Centralized state backends with locking to prevent drift.
  • OpenTofu / Terraform Commands: Aligns with preferred tooling and migration paths.

Quick Start

Initialize OpenTofu Terraform configuration, run plan, and apply to provision a basic VPC module.

Frequently Asked Questions about terraform

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

FAQPage Schema
How do I provision cloud infrastructure as code with Terraform or OpenTofu?

Terraform and OpenTofu automate infrastructure provisioning by defining cloud resources in code. Initialize a configuration with providers and modules, run plan to preview changes, then apply to deploy across AWS, Azure, GCP, and other clouds while maintaining version-controlled state.

What's the best way to structure Terraform modules for reusable infrastructure?

Design modules with clear input variables, outputs, and resource declarations organized by function—networking, compute, storage. This modular approach enables code reuse across projects, consistent naming and tagging conventions, and simplified maintenance of multi-cloud deployments.

How do I manage Terraform state securely across a team?

Use remote state backends with locking—S3, Azure Blob Storage, or Terraform Cloud—to centralize state, prevent concurrent modifications, and enable team collaboration. Configure encryption, access controls, and state isolation per environment to enforce least-privilege security.

Can I migrate from Terraform to OpenTofu without rewriting my infrastructure code?

OpenTofu maintains compatibility with Terraform configurations, so existing code works with minimal changes. Both tools share the same HCL syntax, state format, and provider ecosystem, making migration straightforward for projects seeking an open-source alternative.

What validations should I run before applying Terraform changes to production?

Run terraform plan or tofu plan to preview all changes, use terraform validate to check syntax, and apply tagging and encryption policies before deployment. Review the plan output for unintended deletions or modifications, then apply incrementally to reduce blast radius.