跳到正文

Cloudflare ​

The Cloudflare provider for Pulumi can be used to provision any of the resources available in Cloudflare.

See the full API documentation for complete details of the available Cloudflare provider APIs.

Setup ​

The Cloudflare provider supports several options for interacting with Cloudflare. See the Cloudflare setup page for details.

Example ​

typescript
import * as cloudflare from "@pulumi/cloudflare";

const record = new cloudflare.Record("sample-record", {
  name: "my-record",
  zoneId: "xxsdfhsfkashadf",
  type: "A",
  value: "192.168.0.11",
  ttl: 3600
});

Libraries ​

The following packages are available in packager managers:

The Cloudflare provider is open source and available in the pulumi/pulumi-cloudflare repo.

文档内容翻译自 Pulumi 官方文档。