Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flaconi/terraform-cloudflare-custom-pages

This module will create Cloudflare Custom Pages
https://github.com/flaconi/terraform-cloudflare-custom-pages

cloudflare terraform terraform-module

Last synced: about 4 hours ago
JSON representation

This module will create Cloudflare Custom Pages

Awesome Lists containing this project

README

        

# Terraform module: Cloudflare Custom Pages

[![lint](https://github.com/flaconi/terraform-cloudflare-custom-pages/workflows/lint/badge.svg)](https://github.com/flaconi/terraform-cloudflare-custom-pages/actions?query=workflow%3Alint)
[![test](https://github.com/flaconi/terraform-cloudflare-custom-pages/workflows/test/badge.svg)](https://github.com/flaconi/terraform-cloudflare-custom-pages/actions?query=workflow%3Atest)
[![Tag](https://img.shields.io/github/tag/flaconi/terraform-cloudflare-custom-pages.svg)](https://github.com/flaconi/terraform-cloudflare-custom-pages/releases)
[![Terraform](https://img.shields.io/badge/Terraform--registry-cloudflare--page--rules-brightgreen.svg)](https://registry.terraform.io/modules/flaconi/custom-pages/cloudflare/)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

## Example

`terraform.tfvars`:
```hcl
domain = ""

```

## Providers

| Name | Version |
|------|---------|
| [cloudflare](#provider\_cloudflare) | ~> 4.20 |

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | ~> 1.3 |
| [cloudflare](#requirement\_cloudflare) | ~> 4.20 |

## Required Inputs

The following input variables are required:

### [api\_token](#input\_api\_token)

Description: The Cloudflare API token.

Type: `string`

### [domain](#input\_domain)

Description: Cloudflare domain to apply custom pages.

Type: `string`

## Optional Inputs

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

### [custom\_pages](#input\_custom\_pages)

Description: List of Cloudflare error page objects.

Type:

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

Default: `[]`

## Outputs

| Name | Description |
|------|-------------|
| [custom\_pages](#output\_custom\_pages) | Created Cloudflare custom pages for the given zone. |
| [domain](#output\_domain) | Current zone information. |

## License

**[MIT License](LICENSE)**

Copyright (c) 2022 **[Flaconi GmbH](https://github.com/flaconi)**