cloudflare-coder

Automate Cloudflare provisioning with OpenTofu/Terraform for zones, DNS, SSL, WAF, and caching.

47|11|Updated Nov 26, 2025
One-click install
npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill cloudflare-coder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-coder
Source: https://github.com/majesticlabs-dev/majestic-marketplace/tree/main/plugins/majestic-devops/skills/cloudflare-coder
Command: npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill cloudflare-coder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides IaC patterns for Cloudflare resources, including zones, DNS records, SSL/TLS, WAF, and Page Rules, using OpenTofu/Terraform.

Core Features & Use Cases

  • DNS & Zones: Manage zones and DNS records declaratively.
  • Security & Performance: SSL/TLS settings, WAF, and caching patterns.
  • Migration Patterns: Multi-zone and multi-environment configurations.

Quick Start

Define a basic Cloudflare zone and a couple of DNS records, then apply with Terraform/OpenTofu.

Frequently Asked Questions about cloudflare-coder

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

FAQPage Schema
How do I provision Cloudflare DNS records and zones with Terraform?

Use the Terraform Cloudflare provider to declaratively manage zones and DNS records. Define zone resources, add DNS record blocks with type, name, and value, configure authentication via API tokens, then run terraform apply to create and update records in your Cloudflare account.

Can I manage Cloudflare WAF rules and SSL/TLS settings through infrastructure as code?

Yes. Cloudflare provider resource blocks support WAF rule configuration, SSL/TLS certificate management, and security settings. Define rules and certificates in Terraform, version-control your security configuration, and apply changes across environments consistently.

What's the difference between using Terraform and OpenTofu for Cloudflare infrastructure?

Both Terraform and OpenTofu work with the Cloudflare provider and achieve the same outcome: version-controlled infrastructure. OpenTofu is an open-source fork; choose based on licensing preference and organizational requirements—both produce identical Cloudflare configurations.

How do I set up authentication to Cloudflare in Terraform?

Configure the Cloudflare provider with an API token or legacy API key. Specify credentials in provider blocks or environment variables, then Terraform uses these to authenticate API requests and manage your Cloudflare resources.

Can I manage multiple Cloudflare zones and environments with a single Terraform configuration?

Yes. Use Terraform variables, workspaces, and multiple provider blocks to manage multi-zone and multi-environment setups. Define zone resources separately, reference them across modules, and apply environment-specific configurations without code duplication.

Does the Cloudflare provider support caching rules and Page Rules in Terraform?

Yes. The Cloudflare Terraform provider includes resources for cache settings, Page Rules, and performance controls. Define these rules declaratively to automate cache behavior, TTL configuration, and routing policies alongside DNS and security resources.