Skip to content

dhoppeIT/terraform-cloudflare-account

Repository files navigation

terraform-cloudflare-account

Terraform module to manage the following Cloudflare resources:

  • cloudflare_account

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"
}

Requirements

Name Version
terraform >= 1.0
cloudflare ~> 5.0

Providers

Name Version
cloudflare ~> 5.0

Modules

No modules.

Resources

Name Type
cloudflare_account.this resource

Inputs

Name Description Type Default Required
name Account name string n/a yes
settings Account settings object( { abuse_contact_email = optional(string) default_nameservers = optional(string) enforce_twofactor = optional(bool) use_account_custom_ns_by_default = optional(bool) } ) { "default_nameservers": "cloudflare.standard", "enforce_twofactor": true, "use_account_custom_ns_by_default": false } no
type The type of account being created string n/a yes
unit Information related to the tenant unit, and optionally, an id of the unit to create the account on object( { id = optional(string) } ) null no

Outputs

Name Description
created_on Timestamp for the creation of the account
id Identifier

Authors

Created and maintained by Dennis Hoppe.

License

Apache 2 licensed. See LICENSE for full details.