-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
96 lines (82 loc) · 2.25 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
variable "api_token" {
description = "The Cloudflare API token."
type = string
sensitive = true
}
variable "newrelic_account_id" {
description = "The NewRelic Account ID."
type = string
sensitive = true
}
variable "newrelic_api_key" {
description = "The NewRelic API token."
type = string
sensitive = true
}
variable "job_name" {
description = "The name of the job to create"
type = string
}
variable "domain" {
description = "Cloudflare domain to fetch the zone id"
type = string
}
variable "dataset" {
description = "The kind of the dataset"
type = string
default = "http_requests"
}
variable "enabled" {
description = "Whether to enable the job"
type = bool
default = true
}
variable "filter" {
description = "Filter to include/exclude events"
type = map(any)
default = {}
}
variable "frequency" {
description = "Frequency of logs being pushed"
type = string
default = "high"
}
variable "kind" {
description = "The kind of job to create"
type = string
default = ""
}
variable "logpull_options" {
description = "Configuration string for requested fields and timestamp formats"
type = string
}
variable "max_upload_bytes" {
description = "The maximum uncompressed file size of a batch of logs"
type = number
default = 5000000
}
variable "max_upload_interval_seconds" {
description = "The maximum interval in seconds for log batches"
type = number
default = 30
}
variable "max_upload_records" {
description = "The maximum number of log lines per batch."
type = number
default = 1000
}
variable "destination" {
description = "Destination specific settings"
type = object({
wait_before = optional(string)
newrelic = optional(object({
endpoint = optional(string, "https://log-api.newrelic.com/log/v1")
create_api_key = optional(bool, true)
api_key = optional(string)
}), {})
})
validation {
condition = var.destination.newrelic.create_api_key == true || (var.destination.newrelic.create_api_key == false && length(compact([var.destination.newrelic.api_key, ""])) > 0)
error_message = "Newrelic Api-Key is missing."
}
}