terraform

Manage Terraform and OpenTofu infrastructure as code with state and modules.

30|7|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/rfdiosuao/openfang-cn --skill terraform-rfdiosuao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform
Source: https://github.com/rfdiosuao/openfang-cn/tree/main/crates/openfang-skills/bundled/terraform
Command: npx skills add https://github.com/rfdiosuao/openfang-cn --skill terraform-rfdiosuao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users manage infrastructure as code (IaC) efficiently and safely using Terraform and OpenTofu, ensuring reliable deployments and state management.

Core Features & Use Cases

  • IaC Development: Write, plan, and apply Terraform configurations.
  • State Management: Securely manage Terraform state, including remote backends and state locking.
  • Module Design: Create reusable and well-documented Terraform modules.
  • Best Practices: Adhere to IaC best practices for versioning, tagging, and resource management.
  • Use Case: You need to provision a new set of AWS resources defined in Terraform. This Skill can help you write the configuration, plan the changes, and apply them securely.

Quick Start

Use the terraform skill to plan the infrastructure changes defined in the current directory.

Frequently Asked Questions about terraform

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

FAQPage Schema
How do I securely manage Terraform state with remote backends and locking?

Secure Terraform state management requires configuring remote backends to store state files externally and enabling state locking to prevent concurrent write conflicts during infrastructure deployments. This ensures reliable, collaborative IaC operations.

What is the best way to provision cloud resources using Terraform and OpenTofu?

Provisioning cloud resources with Terraform and OpenTofu involves writing infrastructure as code configurations, running a plan to preview changes, and applying them securely to deploy the defined infrastructure components to your cloud provider.

How do I create reusable and well-documented Terraform modules?

Creating reusable Terraform modules requires structuring infrastructure as code into self-contained, parameterized configurations with clear documentation, enabling consistent resource provisioning and simplified maintenance across multiple deployments.

Can I use OpenTofu with existing Terraform configurations for infrastructure as code management?

Yes, OpenTofu supports existing Terraform configurations for infrastructure as code management, allowing you to write, plan, and apply IaC changes while adhering to best practices like version pinning and CI/CD integration.

What are the IaC best practices for versioning and CI/CD integration in Terraform?

Infrastructure as code best practices for Terraform include version pinning for providers and modules, implementing CI/CD integration for automated deployments, and enforcing resource tagging to maintain consistent infrastructure management.

How do I refactor and import existing resources into Terraform state management?

Refactoring and importing existing resources into Terraform state management involves using import operations to bring unmanaged cloud resources under IaC control, allowing you to safely adopt and restructure infrastructure configurations.