Skip to content

dhoppeIT/terraform-cloudflare-zone

Repository files navigation

terraform-cloudflare-zone

Terraform module to manage the following Cloudflare resources:

  • cloudflare_zone

Usage

Copy and paste the following code snippet to your Terraform configuration, specify the required variables and run the command terraform init.

module "cloudflare_account" {
  source  = "gitlab.com/terraform-child-modules-48151/terraform-cloudflare-account/local"
  version = "1.0.0"

  name = "dhoppeIT"
  type = "standard"
}

module "cloudflare_zone" {
  source  = "gitlab.com/terraform-child-modules-48151/terraform-cloudflare-zone/local"
  version = "1.0.0"

  account = {
    id = module.cloudflare_account.id
  }
  name = "dhoppe.dev"
}

Requirements

Name Version
terraform >= 1.0
cloudflare ~> 5.0

Providers

Name Version
cloudflare ~> 5.0

Modules

No modules.

Resources

Name Type
cloudflare_zone.this resource

Inputs

Name Description Type Default Required
account The account id object( { id = string } ) n/a yes
name The domain name string n/a yes
type The zone type string null no

Outputs

Name Description
activated_on The last time proof of ownership was detected and the zone was made active
created_on When the zone was created
development_mode The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain
id Identifier
meta Metadata about the zone
modified_on When the zone was last modified
name_servers The name servers Cloudflare assigns to a zone
original_dnshost DNS host at the time of switching to Cloudflare
original_name_servers Original name servers before moving to Cloudflare
original_registrar Registrar for the domain at the time of switching to Cloudflare
owner The owner of the zone
paused Indicates whether the zone is only using Cloudflare DNS services
status The zone status on Cloudflare

Authors

Created and maintained by Dennis Hoppe.

License

Apache 2 licensed. See LICENSE for full details.