skillfed

pulumi-cloudflare

A Pulumi package for creating and managing Cloudflare cloud resources.

pulumi-cloudflare v6.19.0 278.1K downloads/30d#8,137 on PyPI151
Permissive license Apache-2.0 Active released

What it is and what it does

This is a Pulumi resource provider that bridges Cloudflare's API into Pulumi's infrastructure-as-code framework. It lets you define Cloudflare resources—zones, DNS records, page rules, workers, and other services—as Python objects in a Pulumi program, then deploy and manage them declaratively. The package wraps Cloudflare's REST API and handles authentication via API token, API key, or user service key.

You use it by installing the package, configuring Cloudflare credentials (typically via environment variables), and then importing its resource classes into your Pulumi Python code. It depends on pulumi as its primary runtime dependency, plus parver, semver, and typing-extensions for version handling and type hints. The package is actively maintained and supports current Python versions (3.9+).

Use it for:

  • Define DNS records, zones, and routing policies for domains managed by Cloudflare as part of a larger infrastructure-as-code stack
  • Automate Cloudflare worker deployments and configurations alongside other cloud resources in a single Pulumi program
  • Manage Cloudflare firewall rules, page rules, and security settings declaratively and version-control them in Git
  • Provision and tear down Cloudflare resources programmatically as part of ephemeral test or staging environments
  • Integrate Cloudflare resource management into CI/CD pipelines using Pulumi's automation API

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Pulumi provider for Cloudflare that lets you define and manage Cloudflare resources programmatically in Python infrastructure-as-code projects.

Yes. This package is actively maintained (release 8 days ago), has low install friction, no known vulnerabilities, and a permissive Apache-2.0 license. It is the standard way to manage Cloudflare resources from Python Pulumi programs. Install it if you are using Pulumi and need to provision or manage Cloudflare infrastructure.

Install

pulumi-cloudflare on PyPI

pip

pip install pulumi-cloudflare

uv

uv add pulumi-cloudflare

poetry

poetry add pulumi-cloudflare

Installing pulumi-cloudflare

Before you install

Low install friction with a wheel distribution. Active maintenance—last release 8 days ago, repository not archived, recent commits. Requires pulumi, parver, semver, and typing-extensions as runtime dependencies.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you may use this in proprietary projects.

Quickstart

pip install pulumi_cloudflare

import pulumi
import pulumi_cloudflare as cf

# Configure with API token
config = pulumi.Config()
api_token = config.require_secret('cloudflare:apiToken')

# Create a Cloudflare resource
zone = cf.Zone('my-zone', account_id='...', name='example.com')

Pulumi CLI must be installed first; requires Python >=3.9; Cloudflare API credentials (token or key) must be configured via environment variables or Pulumi config.

Verify before relying

  • Exact count and scope of Cloudflare resources supported by this provider version
  • Whether all Cloudflare API endpoints are covered or if some require direct API calls
  • Compatibility with specific Pulumi CLI versions beyond the runtime dependency on pulumi package

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 4 — parver, pulumi, semver, typing-extensions
Maintenance actively maintained — 8 days since the last release
Last repo commit
First released
Downloads 278,123/month — #8,137 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pulumi_cloudflare-6.19.0-py3-none-any.whl

Keywords: pulumi, cloudflare

Tags

pulumi cloudflare providerinfrastructure as code cloudflarecloudflare resource management pythonpulumi dns cdn managementcloudflare automation pythonpulumi cloud providerdeclarative cloudflare configuration
infrastructure-as-codecloudflarepulumi-provider

More Software Development packages