pulumi-cloudflare
A Pulumi package for creating and managing Cloudflare cloud resources.
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-cloudflareuv
uv add pulumi-cloudflarepoetry
poetry add pulumi-cloudflareInstalling 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
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
pulumi-dockerPulumi provider for managing Docker resources…
permissive · top 5,000 on PyPI
pulumi-tailscaleA Pulumi resource provider that lets you…
permissive · top 15,000 on PyPI
pulumi-snowflakeA Pulumi resource provider that lets you…
permissive · top 15,000 on PyPI
pulumi-gcpPulumi resource provider for Google Cloud…
permissive · top 5,000 on PyPI
pulumi-tlsPulumi resource provider for creating and…
permissive · top 5,000 on PyPI
pulumi-gitlabPulumi provider for GitLab that lets you define…
permissive · top 15,000 on PyPI
pulumi-pagerdutyA Pulumi resource provider that lets you…
permissive · top 15,000 on PyPI
pulumi-datadogPulumi provider for declaring and managing…
permissive · top 5,000 on PyPI
pulumi-auth0A Pulumi resource provider that lets you…
permissive · top 15,000 on PyPI
pulumi-confluentcloudPulumi provider for declaring and managing…
permissive · top 15,000 on PyPI