Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/flaconi/terraform-cloudflare-custom-pages
- Owner: Flaconi
- License: mit
- Created: 2023-06-12T13:32:20.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-12T11:11:16.000Z (7 months ago)
- Last Synced: 2024-04-12T23:49:14.492Z (7 months ago)
- Topics: cloudflare, terraform, terraform-module
- Language: Makefile
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
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`
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)**