cf-terraforming-knowledge

Generate Terraform HCL and import Cloudflare resources with cf-terraforming.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/biwakonbu/cc-plugins --skill cf-terraforming-knowledge
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cf-terraforming-knowledge
Source: https://github.com/biwakonbu/cc-plugins/tree/main/plugins/cf-terraforming-spec/skills/cf-terraforming-knowledge
Command: npx skills add https://github.com/biwakonbu/cc-plugins --skill cf-terraforming-knowledge

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This knowledge base teaches how to convert existing Cloudflare resources into Terraform configurations using cf-terraforming, enabling IaC-driven infrastructure management.

Core Features & Use Cases

  • HCL generation: Generate Terraform configuration from existing Cloudflare resources.
  • Resource import: Update Terraform state with existing Cloudflare resources.
  • Use Case: Migrate DNS zones, DNS records, and Workers configurations to Terraform for versioned, auditable deployments.

Quick Start

Build your Terraform workflow by generating configurations with cf-terraforming, then integrate them into your Terraform project and apply changes.

  • cf-terraforming generate --resource-type "cloudflare_zone" --zone ZONE_ID > cloudflare_zone.tf
  • cf-terraforming import --resource-type "cloudflare_zone" --zone ZONE_ID > imports.tf
  • terraform init && terraform plan && terraform apply

Frequently Asked Questions about cf-terraforming-knowledge

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

FAQPage Schema
How do I import existing Cloudflare resources into Terraform configurations?

You can migrate existing Cloudflare resources to Terraform using cf-terraforming to generate HCL configurations and update Terraform state. This enables IaC-driven infrastructure management for versioned, auditable deployments.

What is the best way to generate HCL from Cloudflare DNS zones and Workers?

The best way to generate HCL from Cloudflare DNS zones and Workers is using cf-terraforming. It extracts existing resource configurations and outputs Terraform configuration files for your infrastructure management workflow.

Do I need Terraform and Cloudflare credentials installed to use cf-terraforming?

Yes, you need cf-terraforming and Terraform installations along with Cloudflare credentials to perform generation and import tasks. These prerequisites allow the tool to access your resources and manage Terraform state.

How does cf-terraforming update Terraform state with existing Cloudflare resources?

cf-terraforming updates Terraform state by running the import command with your resource type and zone ID. This syncs your existing Cloudflare infrastructure into Terraform state for accurate planning and applying.

Can I use cf-terraforming to migrate Cloudflare DNS records to an IaC workflow?

Yes, you can use cf-terraforming to migrate Cloudflare DNS records to an IaC workflow. It generates Terraform configurations from existing DNS records, allowing you to manage them through versioned Terraform deployments.