Skip to content

Flaconi/terraform-cloudflare-records

Repository files navigation

terraform-cloudflare-records

Terraform module to create set of DNS records in Cloudflare Hosted Zone.

lint test Tag Terraform License

Providers

Name Version
cloudflare ~> 4.41

Requirements

Name Version
terraform ~> 1.3
cloudflare ~> 4.41

Required Inputs

The following input variables are required:

Description: The Cloudflare API token.

Type: string

Description: Cloudflare domain name to create

Type: string

Description: List of names to create

Type:

list(object({
    name     = string
    value    = optional(string)
    type     = string
    ttl      = optional(number, 1)
    proxied  = optional(bool, false)
    priority = optional(number)
    data = optional(object({
      flags = number
      tag   = string
      value = string
    }))
  }))

Optional Inputs

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

Description: Allow override existing records

Type: bool

Default: false

Outputs

Name Description
records Cloudflare Zone DNS Records
zone_id Cloudflare Zone ID

License

MIT License

Copyright (c) 2021 Flaconi GmbH