Skip to content

dapperlabs-platform/terraform-cloudflare-maintenance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-cloudflare-maintenance

Cloudflare zone maintenance page leveraging Cloudflare workers module with approve listing. Takes a simple number of variables as input along with a template to use to generate as HTML displayed to the user.

inspiration from https://github.com/adinhodovic/terraform-cloudflare-maintenance

Requirements

The following requirements are needed by this module:

Providers

The following providers are used by this module:

Modules

No modules.

Resources

The following resources are used by this module:

Required Inputs

The following input variables are required:

Description: n/a

Type: string

Description: The Cloudflare worker name.

Type: string

Description: The DNS pattern list to deploy the maintenance page to.

Type: list(string)

Description: The Cloudflare worker html template that should be displayed (e.g. <!doctype html>......).

Type: string

Optional Inputs

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

Description: The IPs that are allowed to bypass the maintenance page.

Type: string

Default: "placeholder"

Description: Flag to create/delete the worker route.

Type: bool

Default: true

Description: URL to redirect traffic to. Uses var.http_status_code and supersedes var.body.

Type: string

Default: ""

Description: Whether to return a 200 status code with templated response.

Type: bool

Default: false`

Outputs

No outputs.

About

Cloudflare zone maintenance page module with approve listing

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors