published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Provides a resource which manages Cloudflare Pages projects.
If you are using a
sourceblock configuration, you must first have a connected GitHub or GitLab account connected to Cloudflare. See the [Getting Started with Pages] documentation on how to link your accounts.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
// Basic project
var basicProject = new Cloudflare.PagesProject("basicProject", new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
Name = "this-is-my-project-01",
ProductionBranch = "main",
});
// Manage build config
var buildConfig = new Cloudflare.PagesProject("buildConfig", new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
BuildConfig = new Cloudflare.Inputs.PagesProjectBuildConfigArgs
{
BuildCommand = "npm run build",
DestinationDir = "build",
RootDir = "/",
WebAnalyticsTag = "cee1c73f6e4743d0b5e6bb1a0bcaabcc",
WebAnalyticsToken = "021e1057c18547eca7b79f2516f06o7x",
},
Name = "this-is-my-project-01",
ProductionBranch = "main",
});
// Manage project source
var sourceConfig = new Cloudflare.PagesProject("sourceConfig", new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
Name = "this-is-my-project-01",
ProductionBranch = "main",
Source = new Cloudflare.Inputs.PagesProjectSourceArgs
{
Config = new Cloudflare.Inputs.PagesProjectSourceConfigArgs
{
DeploymentsEnabled = true,
Owner = "cloudflare",
PrCommentsEnabled = true,
PreviewBranchExcludes = new[]
{
"main",
"prod",
},
PreviewBranchIncludes = new[]
{
"dev",
"preview",
},
PreviewDeploymentSetting = "custom",
ProductionBranch = "main",
ProductionDeploymentEnabled = true,
RepoName = "ninjakittens",
},
Type = "github",
},
});
// Manage deployment configs
var deploymentConfigs = new Cloudflare.PagesProject("deploymentConfigs", new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
DeploymentConfigs = new Cloudflare.Inputs.PagesProjectDeploymentConfigsArgs
{
Preview = new Cloudflare.Inputs.PagesProjectDeploymentConfigsPreviewArgs
{
CompatibilityDate = "2022-08-15",
CompatibilityFlags = new[]
{
"preview_flag",
},
D1Databases =
{
{ "D1BINDING", "445e2955-951a-4358-a35b-a4d0c813f63" },
},
DurableObjectNamespaces =
{
{ "DOBINDING", "5eb63bbbe01eeed093cb22bb8f5acdc3" },
},
EnvironmentVariables =
{
{ "ENVIRONMENT", "preview" },
},
KvNamespaces =
{
{ "KVBINDING", "5eb63bbbe01eeed093cb22bb8f5acdc3" },
},
R2Buckets =
{
{ "R2BINDING", "some-bucket" },
},
},
Production = new Cloudflare.Inputs.PagesProjectDeploymentConfigsProductionArgs
{
CompatibilityDate = "2022-08-16",
CompatibilityFlags = new[]
{
"production_flag",
"second flag",
},
D1Databases =
{
{ "D1BINDING1", "445e2955-951a-4358-a35b-a4d0c813f63" },
{ "D1BINDING2", "a399414b-c697-409a-a688-377db6433cd9" },
},
DurableObjectNamespaces =
{
{ "DOBINDING1", "5eb63bbbe01eeed093cb22bb8f5acdc3" },
{ "DOBINDING2", "3cdca5f8bb22bc390deee10ebbb36be5" },
},
EnvironmentVariables =
{
{ "ENVIRONMENT", "production" },
{ "OTHERVALUE", "other value" },
},
KvNamespaces =
{
{ "KVBINDING1", "5eb63bbbe01eeed093cb22bb8f5acdc3" },
{ "KVBINDING2", "3cdca5f8bb22bc390deee10ebbb36be5" },
},
R2Buckets =
{
{ "R2BINDING1", "some-bucket" },
{ "R2BINDING2", "other-bucket" },
},
},
},
Name = "this-is-my-project-01",
ProductionBranch = "main",
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v4/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewPagesProject(ctx, "basicProject", &cloudflare.PagesProjectArgs{
AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
Name: pulumi.String("this-is-my-project-01"),
ProductionBranch: pulumi.String("main"),
})
if err != nil {
return err
}
_, err = cloudflare.NewPagesProject(ctx, "buildConfig", &cloudflare.PagesProjectArgs{
AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
BuildConfig: &cloudflare.PagesProjectBuildConfigArgs{
BuildCommand: pulumi.String("npm run build"),
DestinationDir: pulumi.String("build"),
RootDir: pulumi.String("/"),
WebAnalyticsTag: pulumi.String("cee1c73f6e4743d0b5e6bb1a0bcaabcc"),
WebAnalyticsToken: pulumi.String("021e1057c18547eca7b79f2516f06o7x"),
},
Name: pulumi.String("this-is-my-project-01"),
ProductionBranch: pulumi.String("main"),
})
if err != nil {
return err
}
_, err = cloudflare.NewPagesProject(ctx, "sourceConfig", &cloudflare.PagesProjectArgs{
AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
Name: pulumi.String("this-is-my-project-01"),
ProductionBranch: pulumi.String("main"),
Source: &cloudflare.PagesProjectSourceArgs{
Config: &cloudflare.PagesProjectSourceConfigArgs{
DeploymentsEnabled: pulumi.Bool(true),
Owner: pulumi.String("cloudflare"),
PrCommentsEnabled: pulumi.Bool(true),
PreviewBranchExcludes: pulumi.StringArray{
pulumi.String("main"),
pulumi.String("prod"),
},
PreviewBranchIncludes: pulumi.StringArray{
pulumi.String("dev"),
pulumi.String("preview"),
},
PreviewDeploymentSetting: pulumi.String("custom"),
ProductionBranch: pulumi.String("main"),
ProductionDeploymentEnabled: pulumi.Bool(true),
RepoName: pulumi.String("ninjakittens"),
},
Type: pulumi.String("github"),
},
})
if err != nil {
return err
}
_, err = cloudflare.NewPagesProject(ctx, "deploymentConfigs", &cloudflare.PagesProjectArgs{
AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
DeploymentConfigs: &cloudflare.PagesProjectDeploymentConfigsArgs{
Preview: &cloudflare.PagesProjectDeploymentConfigsPreviewArgs{
CompatibilityDate: pulumi.String("2022-08-15"),
CompatibilityFlags: pulumi.StringArray{
pulumi.String("preview_flag"),
},
D1Databases: pulumi.AnyMap{
"D1BINDING": pulumi.Any("445e2955-951a-4358-a35b-a4d0c813f63"),
},
DurableObjectNamespaces: pulumi.AnyMap{
"DOBINDING": pulumi.Any("5eb63bbbe01eeed093cb22bb8f5acdc3"),
},
EnvironmentVariables: pulumi.AnyMap{
"ENVIRONMENT": pulumi.Any("preview"),
},
KvNamespaces: pulumi.AnyMap{
"KVBINDING": pulumi.Any("5eb63bbbe01eeed093cb22bb8f5acdc3"),
},
R2Buckets: pulumi.AnyMap{
"R2BINDING": pulumi.Any("some-bucket"),
},
},
Production: &cloudflare.PagesProjectDeploymentConfigsProductionArgs{
CompatibilityDate: pulumi.String("2022-08-16"),
CompatibilityFlags: pulumi.StringArray{
pulumi.String("production_flag"),
pulumi.String("second flag"),
},
D1Databases: pulumi.AnyMap{
"D1BINDING1": pulumi.Any("445e2955-951a-4358-a35b-a4d0c813f63"),
"D1BINDING2": pulumi.Any("a399414b-c697-409a-a688-377db6433cd9"),
},
DurableObjectNamespaces: pulumi.AnyMap{
"DOBINDING1": pulumi.Any("5eb63bbbe01eeed093cb22bb8f5acdc3"),
"DOBINDING2": pulumi.Any("3cdca5f8bb22bc390deee10ebbb36be5"),
},
EnvironmentVariables: pulumi.AnyMap{
"ENVIRONMENT": pulumi.Any("production"),
"OTHERVALUE": pulumi.Any("other value"),
},
KvNamespaces: pulumi.AnyMap{
"KVBINDING1": pulumi.Any("5eb63bbbe01eeed093cb22bb8f5acdc3"),
"KVBINDING2": pulumi.Any("3cdca5f8bb22bc390deee10ebbb36be5"),
},
R2Buckets: pulumi.AnyMap{
"R2BINDING1": pulumi.Any("some-bucket"),
"R2BINDING2": pulumi.Any("other-bucket"),
},
},
},
Name: pulumi.String("this-is-my-project-01"),
ProductionBranch: pulumi.String("main"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.PagesProject;
import com.pulumi.cloudflare.PagesProjectArgs;
import com.pulumi.cloudflare.inputs.PagesProjectBuildConfigArgs;
import com.pulumi.cloudflare.inputs.PagesProjectSourceArgs;
import com.pulumi.cloudflare.inputs.PagesProjectSourceConfigArgs;
import com.pulumi.cloudflare.inputs.PagesProjectDeploymentConfigsArgs;
import com.pulumi.cloudflare.inputs.PagesProjectDeploymentConfigsPreviewArgs;
import com.pulumi.cloudflare.inputs.PagesProjectDeploymentConfigsProductionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var basicProject = new PagesProject("basicProject", PagesProjectArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.name("this-is-my-project-01")
.productionBranch("main")
.build());
var buildConfig = new PagesProject("buildConfig", PagesProjectArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.buildConfig(PagesProjectBuildConfigArgs.builder()
.buildCommand("npm run build")
.destinationDir("build")
.rootDir("/")
.webAnalyticsTag("cee1c73f6e4743d0b5e6bb1a0bcaabcc")
.webAnalyticsToken("021e1057c18547eca7b79f2516f06o7x")
.build())
.name("this-is-my-project-01")
.productionBranch("main")
.build());
var sourceConfig = new PagesProject("sourceConfig", PagesProjectArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.name("this-is-my-project-01")
.productionBranch("main")
.source(PagesProjectSourceArgs.builder()
.config(PagesProjectSourceConfigArgs.builder()
.deploymentsEnabled(true)
.owner("cloudflare")
.prCommentsEnabled(true)
.previewBranchExcludes(
"main",
"prod")
.previewBranchIncludes(
"dev",
"preview")
.previewDeploymentSetting("custom")
.productionBranch("main")
.productionDeploymentEnabled(true)
.repoName("ninjakittens")
.build())
.type("github")
.build())
.build());
var deploymentConfigs = new PagesProject("deploymentConfigs", PagesProjectArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.deploymentConfigs(PagesProjectDeploymentConfigsArgs.builder()
.preview(PagesProjectDeploymentConfigsPreviewArgs.builder()
.compatibilityDate("2022-08-15")
.compatibilityFlags("preview_flag")
.d1Databases(Map.of("D1BINDING", "445e2955-951a-4358-a35b-a4d0c813f63"))
.durableObjectNamespaces(Map.of("DOBINDING", "5eb63bbbe01eeed093cb22bb8f5acdc3"))
.environmentVariables(Map.of("ENVIRONMENT", "preview"))
.kvNamespaces(Map.of("KVBINDING", "5eb63bbbe01eeed093cb22bb8f5acdc3"))
.r2Buckets(Map.of("R2BINDING", "some-bucket"))
.build())
.production(PagesProjectDeploymentConfigsProductionArgs.builder()
.compatibilityDate("2022-08-16")
.compatibilityFlags(
"production_flag",
"second flag")
.d1Databases(Map.ofEntries(
Map.entry("D1BINDING1", "445e2955-951a-4358-a35b-a4d0c813f63"),
Map.entry("D1BINDING2", "a399414b-c697-409a-a688-377db6433cd9")
))
.durableObjectNamespaces(Map.ofEntries(
Map.entry("DOBINDING1", "5eb63bbbe01eeed093cb22bb8f5acdc3"),
Map.entry("DOBINDING2", "3cdca5f8bb22bc390deee10ebbb36be5")
))
.environmentVariables(Map.ofEntries(
Map.entry("ENVIRONMENT", "production"),
Map.entry("OTHERVALUE", "other value")
))
.kvNamespaces(Map.ofEntries(
Map.entry("KVBINDING1", "5eb63bbbe01eeed093cb22bb8f5acdc3"),
Map.entry("KVBINDING2", "3cdca5f8bb22bc390deee10ebbb36be5")
))
.r2Buckets(Map.ofEntries(
Map.entry("R2BINDING1", "some-bucket"),
Map.entry("R2BINDING2", "other-bucket")
))
.build())
.build())
.name("this-is-my-project-01")
.productionBranch("main")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
// Basic project
const basicProject = new cloudflare.PagesProject("basicProject", {
accountId: "f037e56e89293a057740de681ac9abbe",
name: "this-is-my-project-01",
productionBranch: "main",
});
// Manage build config
const buildConfig = new cloudflare.PagesProject("buildConfig", {
accountId: "f037e56e89293a057740de681ac9abbe",
buildConfig: {
buildCommand: "npm run build",
destinationDir: "build",
rootDir: "/",
webAnalyticsTag: "cee1c73f6e4743d0b5e6bb1a0bcaabcc",
webAnalyticsToken: "021e1057c18547eca7b79f2516f06o7x",
},
name: "this-is-my-project-01",
productionBranch: "main",
});
// Manage project source
const sourceConfig = new cloudflare.PagesProject("sourceConfig", {
accountId: "f037e56e89293a057740de681ac9abbe",
name: "this-is-my-project-01",
productionBranch: "main",
source: {
config: {
deploymentsEnabled: true,
owner: "cloudflare",
prCommentsEnabled: true,
previewBranchExcludes: [
"main",
"prod",
],
previewBranchIncludes: [
"dev",
"preview",
],
previewDeploymentSetting: "custom",
productionBranch: "main",
productionDeploymentEnabled: true,
repoName: "ninjakittens",
},
type: "github",
},
});
// Manage deployment configs
const deploymentConfigs = new cloudflare.PagesProject("deploymentConfigs", {
accountId: "f037e56e89293a057740de681ac9abbe",
deploymentConfigs: {
preview: {
compatibilityDate: "2022-08-15",
compatibilityFlags: ["preview_flag"],
d1Databases: {
D1BINDING: "445e2955-951a-4358-a35b-a4d0c813f63",
},
durableObjectNamespaces: {
DOBINDING: "5eb63bbbe01eeed093cb22bb8f5acdc3",
},
environmentVariables: {
ENVIRONMENT: "preview",
},
kvNamespaces: {
KVBINDING: "5eb63bbbe01eeed093cb22bb8f5acdc3",
},
r2Buckets: {
R2BINDING: "some-bucket",
},
},
production: {
compatibilityDate: "2022-08-16",
compatibilityFlags: [
"production_flag",
"second flag",
],
d1Databases: {
D1BINDING1: "445e2955-951a-4358-a35b-a4d0c813f63",
D1BINDING2: "a399414b-c697-409a-a688-377db6433cd9",
},
durableObjectNamespaces: {
DOBINDING1: "5eb63bbbe01eeed093cb22bb8f5acdc3",
DOBINDING2: "3cdca5f8bb22bc390deee10ebbb36be5",
},
environmentVariables: {
ENVIRONMENT: "production",
OTHERVALUE: "other value",
},
kvNamespaces: {
KVBINDING1: "5eb63bbbe01eeed093cb22bb8f5acdc3",
KVBINDING2: "3cdca5f8bb22bc390deee10ebbb36be5",
},
r2Buckets: {
R2BINDING1: "some-bucket",
R2BINDING2: "other-bucket",
},
},
},
name: "this-is-my-project-01",
productionBranch: "main",
});
import pulumi
import pulumi_cloudflare as cloudflare
# Basic project
basic_project = cloudflare.PagesProject("basicProject",
account_id="f037e56e89293a057740de681ac9abbe",
name="this-is-my-project-01",
production_branch="main")
# Manage build config
build_config = cloudflare.PagesProject("buildConfig",
account_id="f037e56e89293a057740de681ac9abbe",
build_config=cloudflare.PagesProjectBuildConfigArgs(
build_command="npm run build",
destination_dir="build",
root_dir="/",
web_analytics_tag="cee1c73f6e4743d0b5e6bb1a0bcaabcc",
web_analytics_token="021e1057c18547eca7b79f2516f06o7x",
),
name="this-is-my-project-01",
production_branch="main")
# Manage project source
source_config = cloudflare.PagesProject("sourceConfig",
account_id="f037e56e89293a057740de681ac9abbe",
name="this-is-my-project-01",
production_branch="main",
source=cloudflare.PagesProjectSourceArgs(
config=cloudflare.PagesProjectSourceConfigArgs(
deployments_enabled=True,
owner="cloudflare",
pr_comments_enabled=True,
preview_branch_excludes=[
"main",
"prod",
],
preview_branch_includes=[
"dev",
"preview",
],
preview_deployment_setting="custom",
production_branch="main",
production_deployment_enabled=True,
repo_name="ninjakittens",
),
type="github",
))
# Manage deployment configs
deployment_configs = cloudflare.PagesProject("deploymentConfigs",
account_id="f037e56e89293a057740de681ac9abbe",
deployment_configs=cloudflare.PagesProjectDeploymentConfigsArgs(
preview=cloudflare.PagesProjectDeploymentConfigsPreviewArgs(
compatibility_date="2022-08-15",
compatibility_flags=["preview_flag"],
d1_databases={
"D1BINDING": "445e2955-951a-4358-a35b-a4d0c813f63",
},
durable_object_namespaces={
"DOBINDING": "5eb63bbbe01eeed093cb22bb8f5acdc3",
},
environment_variables={
"ENVIRONMENT": "preview",
},
kv_namespaces={
"KVBINDING": "5eb63bbbe01eeed093cb22bb8f5acdc3",
},
r2_buckets={
"R2BINDING": "some-bucket",
},
),
production=cloudflare.PagesProjectDeploymentConfigsProductionArgs(
compatibility_date="2022-08-16",
compatibility_flags=[
"production_flag",
"second flag",
],
d1_databases={
"D1BINDING1": "445e2955-951a-4358-a35b-a4d0c813f63",
"D1BINDING2": "a399414b-c697-409a-a688-377db6433cd9",
},
durable_object_namespaces={
"DOBINDING1": "5eb63bbbe01eeed093cb22bb8f5acdc3",
"DOBINDING2": "3cdca5f8bb22bc390deee10ebbb36be5",
},
environment_variables={
"ENVIRONMENT": "production",
"OTHERVALUE": "other value",
},
kv_namespaces={
"KVBINDING1": "5eb63bbbe01eeed093cb22bb8f5acdc3",
"KVBINDING2": "3cdca5f8bb22bc390deee10ebbb36be5",
},
r2_buckets={
"R2BINDING1": "some-bucket",
"R2BINDING2": "other-bucket",
},
),
),
name="this-is-my-project-01",
production_branch="main")
resources:
# Basic project
basicProject:
type: cloudflare:PagesProject
properties:
accountId: f037e56e89293a057740de681ac9abbe
name: this-is-my-project-01
productionBranch: main
# Manage build config
buildConfig:
type: cloudflare:PagesProject
properties:
accountId: f037e56e89293a057740de681ac9abbe
buildConfig:
buildCommand: npm run build
destinationDir: build
rootDir: /
webAnalyticsTag: cee1c73f6e4743d0b5e6bb1a0bcaabcc
webAnalyticsToken: 021e1057c18547eca7b79f2516f06o7x
name: this-is-my-project-01
productionBranch: main
# Manage project source
sourceConfig:
type: cloudflare:PagesProject
properties:
accountId: f037e56e89293a057740de681ac9abbe
name: this-is-my-project-01
productionBranch: main
source:
config:
deploymentsEnabled: true
owner: cloudflare
prCommentsEnabled: true
previewBranchExcludes:
- main
- prod
previewBranchIncludes:
- dev
- preview
previewDeploymentSetting: custom
productionBranch: main
productionDeploymentEnabled: true
repoName: ninjakittens
type: github
# Manage deployment configs
deploymentConfigs:
type: cloudflare:PagesProject
properties:
accountId: f037e56e89293a057740de681ac9abbe
deploymentConfigs:
preview:
compatibilityDate: 2022-08-15
compatibilityFlags:
- preview_flag
d1Databases:
D1BINDING: 445e2955-951a-4358-a35b-a4d0c813f63
durableObjectNamespaces:
DOBINDING: 5eb63bbbe01eeed093cb22bb8f5acdc3
environmentVariables:
ENVIRONMENT: preview
kvNamespaces:
KVBINDING: 5eb63bbbe01eeed093cb22bb8f5acdc3
r2Buckets:
R2BINDING: some-bucket
production:
compatibilityDate: 2022-08-16
compatibilityFlags:
- production_flag
- second flag
d1Databases:
D1BINDING1: 445e2955-951a-4358-a35b-a4d0c813f63
D1BINDING2: a399414b-c697-409a-a688-377db6433cd9
durableObjectNamespaces:
DOBINDING1: 5eb63bbbe01eeed093cb22bb8f5acdc3
DOBINDING2: 3cdca5f8bb22bc390deee10ebbb36be5
environmentVariables:
ENVIRONMENT: production
OTHERVALUE: other value
kvNamespaces:
KVBINDING1: 5eb63bbbe01eeed093cb22bb8f5acdc3
KVBINDING2: 3cdca5f8bb22bc390deee10ebbb36be5
r2Buckets:
R2BINDING1: some-bucket
R2BINDING2: other-bucket
name: this-is-my-project-01
productionBranch: main
Create PagesProject Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PagesProject(name: string, args: PagesProjectArgs, opts?: CustomResourceOptions);@overload
def PagesProject(resource_name: str,
args: PagesProjectArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PagesProject(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
name: Optional[str] = None,
production_branch: Optional[str] = None,
build_config: Optional[PagesProjectBuildConfigArgs] = None,
deployment_configs: Optional[PagesProjectDeploymentConfigsArgs] = None,
source: Optional[PagesProjectSourceArgs] = None)func NewPagesProject(ctx *Context, name string, args PagesProjectArgs, opts ...ResourceOption) (*PagesProject, error)public PagesProject(string name, PagesProjectArgs args, CustomResourceOptions? opts = null)
public PagesProject(String name, PagesProjectArgs args)
public PagesProject(String name, PagesProjectArgs args, CustomResourceOptions options)
type: cloudflare:PagesProject
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PagesProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PagesProjectArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PagesProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PagesProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PagesProjectArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var pagesProjectResource = new Cloudflare.PagesProject("pagesProjectResource", new()
{
AccountId = "string",
Name = "string",
ProductionBranch = "string",
BuildConfig = new Cloudflare.Inputs.PagesProjectBuildConfigArgs
{
BuildCommand = "string",
DestinationDir = "string",
RootDir = "string",
WebAnalyticsTag = "string",
WebAnalyticsToken = "string",
},
DeploymentConfigs = new Cloudflare.Inputs.PagesProjectDeploymentConfigsArgs
{
Preview = new Cloudflare.Inputs.PagesProjectDeploymentConfigsPreviewArgs
{
AlwaysUseLatestCompatibilityDate = false,
CompatibilityDate = "string",
CompatibilityFlags = new[]
{
"string",
},
D1Databases =
{
{ "string", "any" },
},
DurableObjectNamespaces =
{
{ "string", "any" },
},
EnvironmentVariables =
{
{ "string", "any" },
},
FailOpen = false,
KvNamespaces =
{
{ "string", "any" },
},
R2Buckets =
{
{ "string", "any" },
},
ServiceBindings = new[]
{
new Cloudflare.Inputs.PagesProjectDeploymentConfigsPreviewServiceBindingArgs
{
Name = "string",
Service = "string",
Environment = "string",
},
},
UsageModel = "string",
},
Production = new Cloudflare.Inputs.PagesProjectDeploymentConfigsProductionArgs
{
AlwaysUseLatestCompatibilityDate = false,
CompatibilityDate = "string",
CompatibilityFlags = new[]
{
"string",
},
D1Databases =
{
{ "string", "any" },
},
DurableObjectNamespaces =
{
{ "string", "any" },
},
EnvironmentVariables =
{
{ "string", "any" },
},
FailOpen = false,
KvNamespaces =
{
{ "string", "any" },
},
R2Buckets =
{
{ "string", "any" },
},
ServiceBindings = new[]
{
new Cloudflare.Inputs.PagesProjectDeploymentConfigsProductionServiceBindingArgs
{
Name = "string",
Service = "string",
Environment = "string",
},
},
UsageModel = "string",
},
},
Source = new Cloudflare.Inputs.PagesProjectSourceArgs
{
Config = new Cloudflare.Inputs.PagesProjectSourceConfigArgs
{
ProductionBranch = "string",
DeploymentsEnabled = false,
Owner = "string",
PrCommentsEnabled = false,
PreviewBranchExcludes = new[]
{
"string",
},
PreviewBranchIncludes = new[]
{
"string",
},
PreviewDeploymentSetting = "string",
ProductionDeploymentEnabled = false,
RepoName = "string",
},
Type = "string",
},
});
example, err := cloudflare.NewPagesProject(ctx, "pagesProjectResource", &cloudflare.PagesProjectArgs{
AccountId: pulumi.String("string"),
Name: pulumi.String("string"),
ProductionBranch: pulumi.String("string"),
BuildConfig: &cloudflare.PagesProjectBuildConfigArgs{
BuildCommand: pulumi.String("string"),
DestinationDir: pulumi.String("string"),
RootDir: pulumi.String("string"),
WebAnalyticsTag: pulumi.String("string"),
WebAnalyticsToken: pulumi.String("string"),
},
DeploymentConfigs: &cloudflare.PagesProjectDeploymentConfigsArgs{
Preview: &cloudflare.PagesProjectDeploymentConfigsPreviewArgs{
AlwaysUseLatestCompatibilityDate: pulumi.Bool(false),
CompatibilityDate: pulumi.String("string"),
CompatibilityFlags: pulumi.StringArray{
pulumi.String("string"),
},
D1Databases: pulumi.Map{
"string": pulumi.Any("any"),
},
DurableObjectNamespaces: pulumi.Map{
"string": pulumi.Any("any"),
},
EnvironmentVariables: pulumi.Map{
"string": pulumi.Any("any"),
},
FailOpen: pulumi.Bool(false),
KvNamespaces: pulumi.Map{
"string": pulumi.Any("any"),
},
R2Buckets: pulumi.Map{
"string": pulumi.Any("any"),
},
ServiceBindings: cloudflare.PagesProjectDeploymentConfigsPreviewServiceBindingArray{
&cloudflare.PagesProjectDeploymentConfigsPreviewServiceBindingArgs{
Name: pulumi.String("string"),
Service: pulumi.String("string"),
Environment: pulumi.String("string"),
},
},
UsageModel: pulumi.String("string"),
},
Production: &cloudflare.PagesProjectDeploymentConfigsProductionArgs{
AlwaysUseLatestCompatibilityDate: pulumi.Bool(false),
CompatibilityDate: pulumi.String("string"),
CompatibilityFlags: pulumi.StringArray{
pulumi.String("string"),
},
D1Databases: pulumi.Map{
"string": pulumi.Any("any"),
},
DurableObjectNamespaces: pulumi.Map{
"string": pulumi.Any("any"),
},
EnvironmentVariables: pulumi.Map{
"string": pulumi.Any("any"),
},
FailOpen: pulumi.Bool(false),
KvNamespaces: pulumi.Map{
"string": pulumi.Any("any"),
},
R2Buckets: pulumi.Map{
"string": pulumi.Any("any"),
},
ServiceBindings: cloudflare.PagesProjectDeploymentConfigsProductionServiceBindingArray{
&cloudflare.PagesProjectDeploymentConfigsProductionServiceBindingArgs{
Name: pulumi.String("string"),
Service: pulumi.String("string"),
Environment: pulumi.String("string"),
},
},
UsageModel: pulumi.String("string"),
},
},
Source: &cloudflare.PagesProjectSourceArgs{
Config: &cloudflare.PagesProjectSourceConfigArgs{
ProductionBranch: pulumi.String("string"),
DeploymentsEnabled: pulumi.Bool(false),
Owner: pulumi.String("string"),
PrCommentsEnabled: pulumi.Bool(false),
PreviewBranchExcludes: pulumi.StringArray{
pulumi.String("string"),
},
PreviewBranchIncludes: pulumi.StringArray{
pulumi.String("string"),
},
PreviewDeploymentSetting: pulumi.String("string"),
ProductionDeploymentEnabled: pulumi.Bool(false),
RepoName: pulumi.String("string"),
},
Type: pulumi.String("string"),
},
})
var pagesProjectResource = new PagesProject("pagesProjectResource", PagesProjectArgs.builder()
.accountId("string")
.name("string")
.productionBranch("string")
.buildConfig(PagesProjectBuildConfigArgs.builder()
.buildCommand("string")
.destinationDir("string")
.rootDir("string")
.webAnalyticsTag("string")
.webAnalyticsToken("string")
.build())
.deploymentConfigs(PagesProjectDeploymentConfigsArgs.builder()
.preview(PagesProjectDeploymentConfigsPreviewArgs.builder()
.alwaysUseLatestCompatibilityDate(false)
.compatibilityDate("string")
.compatibilityFlags("string")
.d1Databases(Map.of("string", "any"))
.durableObjectNamespaces(Map.of("string", "any"))
.environmentVariables(Map.of("string", "any"))
.failOpen(false)
.kvNamespaces(Map.of("string", "any"))
.r2Buckets(Map.of("string", "any"))
.serviceBindings(PagesProjectDeploymentConfigsPreviewServiceBindingArgs.builder()
.name("string")
.service("string")
.environment("string")
.build())
.usageModel("string")
.build())
.production(PagesProjectDeploymentConfigsProductionArgs.builder()
.alwaysUseLatestCompatibilityDate(false)
.compatibilityDate("string")
.compatibilityFlags("string")
.d1Databases(Map.of("string", "any"))
.durableObjectNamespaces(Map.of("string", "any"))
.environmentVariables(Map.of("string", "any"))
.failOpen(false)
.kvNamespaces(Map.of("string", "any"))
.r2Buckets(Map.of("string", "any"))
.serviceBindings(PagesProjectDeploymentConfigsProductionServiceBindingArgs.builder()
.name("string")
.service("string")
.environment("string")
.build())
.usageModel("string")
.build())
.build())
.source(PagesProjectSourceArgs.builder()
.config(PagesProjectSourceConfigArgs.builder()
.productionBranch("string")
.deploymentsEnabled(false)
.owner("string")
.prCommentsEnabled(false)
.previewBranchExcludes("string")
.previewBranchIncludes("string")
.previewDeploymentSetting("string")
.productionDeploymentEnabled(false)
.repoName("string")
.build())
.type("string")
.build())
.build());
pages_project_resource = cloudflare.PagesProject("pagesProjectResource",
account_id="string",
name="string",
production_branch="string",
build_config={
"build_command": "string",
"destination_dir": "string",
"root_dir": "string",
"web_analytics_tag": "string",
"web_analytics_token": "string",
},
deployment_configs={
"preview": {
"always_use_latest_compatibility_date": False,
"compatibility_date": "string",
"compatibility_flags": ["string"],
"d1_databases": {
"string": "any",
},
"durable_object_namespaces": {
"string": "any",
},
"environment_variables": {
"string": "any",
},
"fail_open": False,
"kv_namespaces": {
"string": "any",
},
"r2_buckets": {
"string": "any",
},
"service_bindings": [{
"name": "string",
"service": "string",
"environment": "string",
}],
"usage_model": "string",
},
"production": {
"always_use_latest_compatibility_date": False,
"compatibility_date": "string",
"compatibility_flags": ["string"],
"d1_databases": {
"string": "any",
},
"durable_object_namespaces": {
"string": "any",
},
"environment_variables": {
"string": "any",
},
"fail_open": False,
"kv_namespaces": {
"string": "any",
},
"r2_buckets": {
"string": "any",
},
"service_bindings": [{
"name": "string",
"service": "string",
"environment": "string",
}],
"usage_model": "string",
},
},
source={
"config": {
"production_branch": "string",
"deployments_enabled": False,
"owner": "string",
"pr_comments_enabled": False,
"preview_branch_excludes": ["string"],
"preview_branch_includes": ["string"],
"preview_deployment_setting": "string",
"production_deployment_enabled": False,
"repo_name": "string",
},
"type": "string",
})
const pagesProjectResource = new cloudflare.PagesProject("pagesProjectResource", {
accountId: "string",
name: "string",
productionBranch: "string",
buildConfig: {
buildCommand: "string",
destinationDir: "string",
rootDir: "string",
webAnalyticsTag: "string",
webAnalyticsToken: "string",
},
deploymentConfigs: {
preview: {
alwaysUseLatestCompatibilityDate: false,
compatibilityDate: "string",
compatibilityFlags: ["string"],
d1Databases: {
string: "any",
},
durableObjectNamespaces: {
string: "any",
},
environmentVariables: {
string: "any",
},
failOpen: false,
kvNamespaces: {
string: "any",
},
r2Buckets: {
string: "any",
},
serviceBindings: [{
name: "string",
service: "string",
environment: "string",
}],
usageModel: "string",
},
production: {
alwaysUseLatestCompatibilityDate: false,
compatibilityDate: "string",
compatibilityFlags: ["string"],
d1Databases: {
string: "any",
},
durableObjectNamespaces: {
string: "any",
},
environmentVariables: {
string: "any",
},
failOpen: false,
kvNamespaces: {
string: "any",
},
r2Buckets: {
string: "any",
},
serviceBindings: [{
name: "string",
service: "string",
environment: "string",
}],
usageModel: "string",
},
},
source: {
config: {
productionBranch: "string",
deploymentsEnabled: false,
owner: "string",
prCommentsEnabled: false,
previewBranchExcludes: ["string"],
previewBranchIncludes: ["string"],
previewDeploymentSetting: "string",
productionDeploymentEnabled: false,
repoName: "string",
},
type: "string",
},
});
type: cloudflare:PagesProject
properties:
accountId: string
buildConfig:
buildCommand: string
destinationDir: string
rootDir: string
webAnalyticsTag: string
webAnalyticsToken: string
deploymentConfigs:
preview:
alwaysUseLatestCompatibilityDate: false
compatibilityDate: string
compatibilityFlags:
- string
d1Databases:
string: any
durableObjectNamespaces:
string: any
environmentVariables:
string: any
failOpen: false
kvNamespaces:
string: any
r2Buckets:
string: any
serviceBindings:
- environment: string
name: string
service: string
usageModel: string
production:
alwaysUseLatestCompatibilityDate: false
compatibilityDate: string
compatibilityFlags:
- string
d1Databases:
string: any
durableObjectNamespaces:
string: any
environmentVariables:
string: any
failOpen: false
kvNamespaces:
string: any
r2Buckets:
string: any
serviceBindings:
- environment: string
name: string
service: string
usageModel: string
name: string
productionBranch: string
source:
config:
deploymentsEnabled: false
owner: string
prCommentsEnabled: false
previewBranchExcludes:
- string
previewBranchIncludes:
- string
previewDeploymentSetting: string
productionBranch: string
productionDeploymentEnabled: false
repoName: string
type: string
PagesProject Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PagesProject resource accepts the following input properties:
- Account
Id string - The account identifier to target for the resource.
- Name string
- Name of the project. Modifying this attribute will force creation of a new resource.
- Production
Branch string - The name of the branch that is used for the production environment.
- Build
Config PagesProject Build Config - Configuration for the project build process.
- Deployment
Configs PagesProject Deployment Configs - Configuration for deployments in a project.
- Source
Pages
Project Source - Configuration for the project source.
- Account
Id string - The account identifier to target for the resource.
- Name string
- Name of the project. Modifying this attribute will force creation of a new resource.
- Production
Branch string - The name of the branch that is used for the production environment.
- Build
Config PagesProject Build Config Args - Configuration for the project build process.
- Deployment
Configs PagesProject Deployment Configs Args - Configuration for deployments in a project.
- Source
Pages
Project Source Args - Configuration for the project source.
- account
Id String - The account identifier to target for the resource.
- name String
- Name of the project. Modifying this attribute will force creation of a new resource.
- production
Branch String - The name of the branch that is used for the production environment.
- build
Config PagesProject Build Config - Configuration for the project build process.
- deployment
Configs PagesProject Deployment Configs - Configuration for deployments in a project.
- source
Pages
Project Source - Configuration for the project source.
- account
Id string - The account identifier to target for the resource.
- name string
- Name of the project. Modifying this attribute will force creation of a new resource.
- production
Branch string - The name of the branch that is used for the production environment.
- build
Config PagesProject Build Config - Configuration for the project build process.
- deployment
Configs PagesProject Deployment Configs - Configuration for deployments in a project.
- source
Pages
Project Source - Configuration for the project source.
- account_
id str - The account identifier to target for the resource.
- name str
- Name of the project. Modifying this attribute will force creation of a new resource.
- production_
branch str - The name of the branch that is used for the production environment.
- build_
config PagesProject Build Config Args - Configuration for the project build process.
- deployment_
configs PagesProject Deployment Configs Args - Configuration for deployments in a project.
- source
Pages
Project Source Args - Configuration for the project source.
- account
Id String - The account identifier to target for the resource.
- name String
- Name of the project. Modifying this attribute will force creation of a new resource.
- production
Branch String - The name of the branch that is used for the production environment.
- build
Config Property Map - Configuration for the project build process.
- deployment
Configs Property Map - Configuration for deployments in a project.
- source Property Map
- Configuration for the project source.
Outputs
All input properties are implicitly available as output properties. Additionally, the PagesProject resource produces the following output properties:
- created_
on str - When the project was created.
- domains Sequence[str]
- A list of associated custom domains for the project.
- id str
- The provider-assigned unique ID for this managed resource.
- subdomain str
- The Cloudflare subdomain associated with the project.
Look up Existing PagesProject Resource
Get an existing PagesProject resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PagesProjectState, opts?: CustomResourceOptions): PagesProject@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
build_config: Optional[PagesProjectBuildConfigArgs] = None,
created_on: Optional[str] = None,
deployment_configs: Optional[PagesProjectDeploymentConfigsArgs] = None,
domains: Optional[Sequence[str]] = None,
name: Optional[str] = None,
production_branch: Optional[str] = None,
source: Optional[PagesProjectSourceArgs] = None,
subdomain: Optional[str] = None) -> PagesProjectfunc GetPagesProject(ctx *Context, name string, id IDInput, state *PagesProjectState, opts ...ResourceOption) (*PagesProject, error)public static PagesProject Get(string name, Input<string> id, PagesProjectState? state, CustomResourceOptions? opts = null)public static PagesProject get(String name, Output<String> id, PagesProjectState state, CustomResourceOptions options)resources: _: type: cloudflare:PagesProject get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - The account identifier to target for the resource.
- Build
Config PagesProject Build Config - Configuration for the project build process.
- Created
On string - When the project was created.
- Deployment
Configs PagesProject Deployment Configs - Configuration for deployments in a project.
- Domains List<string>
- A list of associated custom domains for the project.
- Name string
- Name of the project. Modifying this attribute will force creation of a new resource.
- Production
Branch string - The name of the branch that is used for the production environment.
- Source
Pages
Project Source - Configuration for the project source.
- Subdomain string
- The Cloudflare subdomain associated with the project.
- Account
Id string - The account identifier to target for the resource.
- Build
Config PagesProject Build Config Args - Configuration for the project build process.
- Created
On string - When the project was created.
- Deployment
Configs PagesProject Deployment Configs Args - Configuration for deployments in a project.
- Domains []string
- A list of associated custom domains for the project.
- Name string
- Name of the project. Modifying this attribute will force creation of a new resource.
- Production
Branch string - The name of the branch that is used for the production environment.
- Source
Pages
Project Source Args - Configuration for the project source.
- Subdomain string
- The Cloudflare subdomain associated with the project.
- account
Id String - The account identifier to target for the resource.
- build
Config PagesProject Build Config - Configuration for the project build process.
- created
On String - When the project was created.
- deployment
Configs PagesProject Deployment Configs - Configuration for deployments in a project.
- domains List<String>
- A list of associated custom domains for the project.
- name String
- Name of the project. Modifying this attribute will force creation of a new resource.
- production
Branch String - The name of the branch that is used for the production environment.
- source
Pages
Project Source - Configuration for the project source.
- subdomain String
- The Cloudflare subdomain associated with the project.
- account
Id string - The account identifier to target for the resource.
- build
Config PagesProject Build Config - Configuration for the project build process.
- created
On string - When the project was created.
- deployment
Configs PagesProject Deployment Configs - Configuration for deployments in a project.
- domains string[]
- A list of associated custom domains for the project.
- name string
- Name of the project. Modifying this attribute will force creation of a new resource.
- production
Branch string - The name of the branch that is used for the production environment.
- source
Pages
Project Source - Configuration for the project source.
- subdomain string
- The Cloudflare subdomain associated with the project.
- account_
id str - The account identifier to target for the resource.
- build_
config PagesProject Build Config Args - Configuration for the project build process.
- created_
on str - When the project was created.
- deployment_
configs PagesProject Deployment Configs Args - Configuration for deployments in a project.
- domains Sequence[str]
- A list of associated custom domains for the project.
- name str
- Name of the project. Modifying this attribute will force creation of a new resource.
- production_
branch str - The name of the branch that is used for the production environment.
- source
Pages
Project Source Args - Configuration for the project source.
- subdomain str
- The Cloudflare subdomain associated with the project.
- account
Id String - The account identifier to target for the resource.
- build
Config Property Map - Configuration for the project build process.
- created
On String - When the project was created.
- deployment
Configs Property Map - Configuration for deployments in a project.
- domains List<String>
- A list of associated custom domains for the project.
- name String
- Name of the project. Modifying this attribute will force creation of a new resource.
- production
Branch String - The name of the branch that is used for the production environment.
- source Property Map
- Configuration for the project source.
- subdomain String
- The Cloudflare subdomain associated with the project.
Supporting Types
PagesProjectBuildConfig, PagesProjectBuildConfigArgs
- Build
Command string - Command used to build project.
- Destination
Dir string - Output directory of the build.
- Root
Dir string - Directory to run the command.
- Web
Analytics stringTag - The classifying tag for analytics.
- Web
Analytics stringToken - The auth token for analytics.
- Build
Command string - Command used to build project.
- Destination
Dir string - Output directory of the build.
- Root
Dir string - Directory to run the command.
- Web
Analytics stringTag - The classifying tag for analytics.
- Web
Analytics stringToken - The auth token for analytics.
- build
Command String - Command used to build project.
- destination
Dir String - Output directory of the build.
- root
Dir String - Directory to run the command.
- web
Analytics StringTag - The classifying tag for analytics.
- web
Analytics StringToken - The auth token for analytics.
- build
Command string - Command used to build project.
- destination
Dir string - Output directory of the build.
- root
Dir string - Directory to run the command.
- web
Analytics stringTag - The classifying tag for analytics.
- web
Analytics stringToken - The auth token for analytics.
- build_
command str - Command used to build project.
- destination_
dir str - Output directory of the build.
- root_
dir str - Directory to run the command.
- web_
analytics_ strtag - The classifying tag for analytics.
- web_
analytics_ strtoken - The auth token for analytics.
- build
Command String - Command used to build project.
- destination
Dir String - Output directory of the build.
- root
Dir String - Directory to run the command.
- web
Analytics StringTag - The classifying tag for analytics.
- web
Analytics StringToken - The auth token for analytics.
PagesProjectDeploymentConfigs, PagesProjectDeploymentConfigsArgs
- Preview
Pages
Project Deployment Configs Preview - Configuration for preview deploys.
- Production
Pages
Project Deployment Configs Production - Configuration for production deploys.
- Preview
Pages
Project Deployment Configs Preview - Configuration for preview deploys.
- Production
Pages
Project Deployment Configs Production - Configuration for production deploys.
- preview
Pages
Project Deployment Configs Preview - Configuration for preview deploys.
- production
Pages
Project Deployment Configs Production - Configuration for production deploys.
- preview
Pages
Project Deployment Configs Preview - Configuration for preview deploys.
- production
Pages
Project Deployment Configs Production - Configuration for production deploys.
- preview
Pages
Project Deployment Configs Preview - Configuration for preview deploys.
- production
Pages
Project Deployment Configs Production - Configuration for production deploys.
- preview Property Map
- Configuration for preview deploys.
- production Property Map
- Configuration for production deploys.
PagesProjectDeploymentConfigsPreview, PagesProjectDeploymentConfigsPreviewArgs
- Always
Use boolLatest Compatibility Date - Compatibility
Date string - Compatibility
Flags List<string> - D1Databases Dictionary<string, object>
- Durable
Object Dictionary<string, object>Namespaces - Environment
Variables Dictionary<string, object> - Fail
Open bool - Kv
Namespaces Dictionary<string, object> - R2Buckets Dictionary<string, object>
- Service
Bindings List<PagesProject Deployment Configs Preview Service Binding> - Usage
Model string
- Always
Use boolLatest Compatibility Date - Compatibility
Date string - Compatibility
Flags []string - D1Databases map[string]interface{}
- Durable
Object map[string]interface{}Namespaces - Environment
Variables map[string]interface{} - Fail
Open bool - Kv
Namespaces map[string]interface{} - R2Buckets map[string]interface{}
- Service
Bindings []PagesProject Deployment Configs Preview Service Binding - Usage
Model string
- always
Use BooleanLatest Compatibility Date - compatibility
Date String - compatibility
Flags List<String> - d1Databases Map<String,Object>
- durable
Object Map<String,Object>Namespaces - environment
Variables Map<String,Object> - fail
Open Boolean - kv
Namespaces Map<String,Object> - r2Buckets Map<String,Object>
- service
Bindings List<PagesProject Deployment Configs Preview Service Binding> - usage
Model String
- always
Use booleanLatest Compatibility Date - compatibility
Date string - compatibility
Flags string[] - d1Databases {[key: string]: any}
- durable
Object {[key: string]: any}Namespaces - environment
Variables {[key: string]: any} - fail
Open boolean - kv
Namespaces {[key: string]: any} - r2Buckets {[key: string]: any}
- service
Bindings PagesProject Deployment Configs Preview Service Binding[] - usage
Model string
- always_
use_ boollatest_ compatibility_ date - compatibility_
date str - compatibility_
flags Sequence[str] - d1_
databases Mapping[str, Any] - durable_
object_ Mapping[str, Any]namespaces - environment_
variables Mapping[str, Any] - fail_
open bool - kv_
namespaces Mapping[str, Any] - r2_
buckets Mapping[str, Any] - service_
bindings Sequence[PagesProject Deployment Configs Preview Service Binding] - usage_
model str
- always
Use BooleanLatest Compatibility Date - compatibility
Date String - compatibility
Flags List<String> - d1Databases Map<Any>
- durable
Object Map<Any>Namespaces - environment
Variables Map<Any> - fail
Open Boolean - kv
Namespaces Map<Any> - r2Buckets Map<Any>
- service
Bindings List<Property Map> - usage
Model String
PagesProjectDeploymentConfigsPreviewServiceBinding, PagesProjectDeploymentConfigsPreviewServiceBindingArgs
- Name string
- Name of the project. Modifying this attribute will force creation of a new resource.
- Service string
- Environment string
- Name string
- Name of the project. Modifying this attribute will force creation of a new resource.
- Service string
- Environment string
- name String
- Name of the project. Modifying this attribute will force creation of a new resource.
- service String
- environment String
- name string
- Name of the project. Modifying this attribute will force creation of a new resource.
- service string
- environment string
- name str
- Name of the project. Modifying this attribute will force creation of a new resource.
- service str
- environment str
- name String
- Name of the project. Modifying this attribute will force creation of a new resource.
- service String
- environment String
PagesProjectDeploymentConfigsProduction, PagesProjectDeploymentConfigsProductionArgs
- Always
Use boolLatest Compatibility Date - Compatibility
Date string - Compatibility
Flags List<string> - D1Databases Dictionary<string, object>
- Durable
Object Dictionary<string, object>Namespaces - Environment
Variables Dictionary<string, object> - Fail
Open bool - Kv
Namespaces Dictionary<string, object> - R2Buckets Dictionary<string, object>
- Service
Bindings List<PagesProject Deployment Configs Production Service Binding> - Usage
Model string
- Always
Use boolLatest Compatibility Date - Compatibility
Date string - Compatibility
Flags []string - D1Databases map[string]interface{}
- Durable
Object map[string]interface{}Namespaces - Environment
Variables map[string]interface{} - Fail
Open bool - Kv
Namespaces map[string]interface{} - R2Buckets map[string]interface{}
- Service
Bindings []PagesProject Deployment Configs Production Service Binding - Usage
Model string
- always
Use BooleanLatest Compatibility Date - compatibility
Date String - compatibility
Flags List<String> - d1Databases Map<String,Object>
- durable
Object Map<String,Object>Namespaces - environment
Variables Map<String,Object> - fail
Open Boolean - kv
Namespaces Map<String,Object> - r2Buckets Map<String,Object>
- service
Bindings List<PagesProject Deployment Configs Production Service Binding> - usage
Model String
- always
Use booleanLatest Compatibility Date - compatibility
Date string - compatibility
Flags string[] - d1Databases {[key: string]: any}
- durable
Object {[key: string]: any}Namespaces - environment
Variables {[key: string]: any} - fail
Open boolean - kv
Namespaces {[key: string]: any} - r2Buckets {[key: string]: any}
- service
Bindings PagesProject Deployment Configs Production Service Binding[] - usage
Model string
- always_
use_ boollatest_ compatibility_ date - compatibility_
date str - compatibility_
flags Sequence[str] - d1_
databases Mapping[str, Any] - durable_
object_ Mapping[str, Any]namespaces - environment_
variables Mapping[str, Any] - fail_
open bool - kv_
namespaces Mapping[str, Any] - r2_
buckets Mapping[str, Any] - service_
bindings Sequence[PagesProject Deployment Configs Production Service Binding] - usage_
model str
- always
Use BooleanLatest Compatibility Date - compatibility
Date String - compatibility
Flags List<String> - d1Databases Map<Any>
- durable
Object Map<Any>Namespaces - environment
Variables Map<Any> - fail
Open Boolean - kv
Namespaces Map<Any> - r2Buckets Map<Any>
- service
Bindings List<Property Map> - usage
Model String
PagesProjectDeploymentConfigsProductionServiceBinding, PagesProjectDeploymentConfigsProductionServiceBindingArgs
- Name string
- Name of the project. Modifying this attribute will force creation of a new resource.
- Service string
- Environment string
- Name string
- Name of the project. Modifying this attribute will force creation of a new resource.
- Service string
- Environment string
- name String
- Name of the project. Modifying this attribute will force creation of a new resource.
- service String
- environment String
- name string
- Name of the project. Modifying this attribute will force creation of a new resource.
- service string
- environment string
- name str
- Name of the project. Modifying this attribute will force creation of a new resource.
- service str
- environment str
- name String
- Name of the project. Modifying this attribute will force creation of a new resource.
- service String
- environment String
PagesProjectSource, PagesProjectSourceArgs
- Config
Pages
Project Source Config - Configuration for the source of the Cloudflare Pages project.
- Type string
- Project host type.
- Config
Pages
Project Source Config - Configuration for the source of the Cloudflare Pages project.
- Type string
- Project host type.
- config
Pages
Project Source Config - Configuration for the source of the Cloudflare Pages project.
- type String
- Project host type.
- config
Pages
Project Source Config - Configuration for the source of the Cloudflare Pages project.
- type string
- Project host type.
- config
Pages
Project Source Config - Configuration for the source of the Cloudflare Pages project.
- type str
- Project host type.
- config Property Map
- Configuration for the source of the Cloudflare Pages project.
- type String
- Project host type.
PagesProjectSourceConfig, PagesProjectSourceConfigArgs
- Production
Branch string - The name of the branch that is used for the production environment.
- Deployments
Enabled bool - Owner string
- Pr
Comments boolEnabled - Preview
Branch List<string>Excludes - Preview
Branch List<string>Includes - Preview
Deployment stringSetting - Production
Deployment boolEnabled - Repo
Name string
- Production
Branch string - The name of the branch that is used for the production environment.
- Deployments
Enabled bool - Owner string
- Pr
Comments boolEnabled - Preview
Branch []stringExcludes - Preview
Branch []stringIncludes - Preview
Deployment stringSetting - Production
Deployment boolEnabled - Repo
Name string
- production
Branch String - The name of the branch that is used for the production environment.
- deployments
Enabled Boolean - owner String
- pr
Comments BooleanEnabled - preview
Branch List<String>Excludes - preview
Branch List<String>Includes - preview
Deployment StringSetting - production
Deployment BooleanEnabled - repo
Name String
- production
Branch string - The name of the branch that is used for the production environment.
- deployments
Enabled boolean - owner string
- pr
Comments booleanEnabled - preview
Branch string[]Excludes - preview
Branch string[]Includes - preview
Deployment stringSetting - production
Deployment booleanEnabled - repo
Name string
- production_
branch str - The name of the branch that is used for the production environment.
- deployments_
enabled bool - owner str
- pr_
comments_ boolenabled - preview_
branch_ Sequence[str]excludes - preview_
branch_ Sequence[str]includes - preview_
deployment_ strsetting - production_
deployment_ boolenabled - repo_
name str
- production
Branch String - The name of the branch that is used for the production environment.
- deployments
Enabled Boolean - owner String
- pr
Comments BooleanEnabled - preview
Branch List<String>Excludes - preview
Branch List<String>Includes - preview
Deployment StringSetting - production
Deployment BooleanEnabled - repo
Name String
Import
$ pulumi import cloudflare:index/pagesProject:PagesProject example <account_id>/<project_name>
[Getting Started with Pages]https://developers.cloudflare.com/pages/get-started/#connect-your-git-provider-to-pages
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
published on Monday, Mar 9, 2026 by Pulumi
