Homelab Terraform Operations

Manage Cloudflare DNS records and tunnel routes with Terraform.

Updated Sep 29, 2025
One-click install
npx skills add https://github.com/LucasSantana-Dev/homelab --skill homelab-terraform-operations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Homelab Terraform Operations
Source: https://github.com/LucasSantana-Dev/homelab/tree/main/.claude/skills/homelab-terraform-ops
Command: npx skills add https://github.com/LucasSantana-Dev/homelab --skill homelab-terraform-operations

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the management of Cloudflare DNS records and tunnel routes using Terraform, ensuring infrastructure consistency and simplifying deployments.

Core Features & Use Cases

  • Infrastructure as Code: Define and manage Cloudflare resources declaratively.
  • Automated Deployments: Run Terraform plan and apply operations for infrastructure changes.
  • Drift Detection: Identify and reconcile differences between desired and actual infrastructure state.
  • Use Case: Add a new subdomain to your homelab by defining its DNS record and Cloudflare tunnel route in Terraform, then use this Skill to apply the changes.

Quick Start

Run a Terraform plan for your homelab Cloudflare infrastructure.

Frequently Asked Questions about Homelab Terraform Operations

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

FAQPage Schema
How do I automate Cloudflare DNS records and tunnel routes using Terraform?

Automate Cloudflare DNS records and tunnel routes using Terraform by running plan and apply operations through this Skill, which manages state and creates backups to ensure infrastructure consistency.

What do I need to manage Cloudflare infrastructure with Terraform?

To manage Cloudflare infrastructure with Terraform, you need the Terraform binary installed and a Cloudflare API token configured for authenticating and executing infrastructure changes.

Can I detect configuration drift in my homelab Cloudflare setup?

Yes, you can detect configuration drift in your homelab Cloudflare setup by running a Terraform plan, which identifies and helps reconcile differences between your desired and actual infrastructure state.

What is the best way to add a new subdomain to a homelab using infrastructure as code?

The best way to add a new subdomain to a homelab using infrastructure as code is to declaratively define the DNS record and Cloudflare tunnel route in Terraform, then apply the changes.

Does this Terraform automation support state management and backups for Cloudflare changes?

Yes, this Terraform automation supports state management and backups for Cloudflare changes, ensuring you can safely validate, plan, and apply infrastructure modifications without losing state.

Are there limitations when managing Cloudflare tunnel routes with Terraform?

A key limitation when managing Cloudflare tunnel routes with Terraform is that execution strictly requires the Terraform binary and a valid Cloudflare API token to apply any infrastructure changes.