Skip to content

Flaconi/terraform-cloudflare-custom-pages

Repository files navigation

Terraform module: Cloudflare Custom Pages

lint test Tag Terraform License

Example

terraform.tfvars:

domain = "<domain.tld>"

Providers

Name Version
cloudflare 4.52.0

Requirements

Name Version
terraform ~> 1.3
cloudflare 4.52.0

Required Inputs

The following input variables are required:

Description: The Cloudflare API token.

Type: string

Description: Cloudflare domain to apply custom pages.

Type: string

Optional Inputs

The following input variables are optional (have default values):

Description: List of Cloudflare error page objects.

Type:

list(object({
    type  = string
    url   = string
    state = optional(string, "customized")
  }))

Default: []

Outputs

Name Description
custom_pages Created Cloudflare custom pages for the given zone.
domain Current zone information.

License

MIT License

Copyright (c) 2022 Flaconi GmbH