generated from cloudposse/terraform-example-module
-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
variables.tf
110 lines (96 loc) · 2.96 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
variable "zone" {
type = string
description = "The DNS zone name which will be added."
}
variable "account_id" {
type = string
description = "Cloudflare account ID to manage the zone resource in"
}
variable "zone_enabled" {
type = bool
description = "Whether to create DNS zone otherwise use existing."
default = true
}
variable "records" {
type = list(any)
default = []
description = <<-DOC
name:
The name of the record.
type:
The type of the record.
value:
The value of the record.
comment:
Optional comment for the record.
ttl:
The TTL of the record.
Default value: 1.
priority:
The priority of the record.
proxied:
Whether the record gets Cloudflare's origin protection.
Default value: false.
DOC
}
variable "paused" {
type = bool
description = "Whether this zone is paused (traffic bypasses Cloudflare)"
default = false
}
variable "jump_start" {
type = bool
description = "Whether to scan for DNS records on creation."
default = false
}
variable "plan" {
type = string
description = "The name of the commercial plan to apply to the zone. Possible values: `free`, `pro`, `business`, `enterprise`"
default = "free"
validation {
condition = var.plan == null ? true : contains(["free", "pro", "business", "enterprise"], var.plan)
error_message = "Allowed values: `free`, `pro`, `business`, `enterprise`."
}
}
variable "type" {
type = string
description = "A full zone implies that DNS is hosted with Cloudflare. A `partial` zone is typically a partner-hosted zone or a CNAME setup. Possible values: `full`, `partial`."
default = "full"
validation {
condition = var.type == null ? true : contains(["full", "partial"], var.type)
error_message = "Allowed values: `full`, `partial`."
}
}
variable "argo_enabled" {
type = bool
description = "Whether to enable Cloudflare Argo for DNS zone"
default = false
}
variable "argo_tiered_caching_enabled" {
type = bool
description = "Whether tiered caching is enabled."
default = true
}
variable "argo_smart_routing_enabled" {
type = bool
description = "Whether smart routing is enabled."
default = true
}
variable "healthchecks" {
type = list(any)
default = null
description = <<-DOC
A list of maps of Health Checks rules.
The values of map is fully compliant with `cloudflare_healthcheck` resource.
To get more info see https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/healthcheck
DOC
}
variable "page_rules" {
type = list(any)
default = null
description = <<-DOC
A list of maps of Page Rules.
The values of map is fully compliant with `cloudflare_page_rule` resource.
To get more info see https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/cloudflare_page_rule
DOC
}