-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
104 lines (89 loc) · 3.41 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
variable "app_name" {
type = string
description = "The application name to include in the name of resources created."
}
variable "humio_protocol" {
type = string
description = "The transport protocol used for delivering log/metric events to Humio. HTTPS is default and recommended."
validation {
condition = contains(["HTTPS", "HTTP"], var.humio_protocol)
error_message = "Must be one of ['HTTPS', 'HTTP']."
}
default = "HTTPS"
}
variable "humio_host" {
type = string
description = "The host to ship Humio log/metric events to."
default = "cloud.humio.com"
}
variable "humio_ingest_token" {
type = string
description = "The value of the ingest token for the repository from your Humio account to ship log/metric events to."
default = ""
sensitive = true
}
variable "humio_lambda_log_retention" {
type = number
description = "Number of days to retain CloudWatch logs from the Humio Lambda functions."
default = 1
}
variable "humio_lambda_role_permissions_boundary" {
type = string
description = "The ARN of the role permissions boundary to attach to the Humio Lambda role."
default = ""
}
variable "logs_subscriptions" {
// Pass in a set of aws_cloudwatch_log_group resource
type = list(string)
description = "Humio will only subscribe to the log groups specified."
default = []
}
variable "metric_conf" {
type = string
description = "Humio will only subscribe to the metrics specified."
default = ""
}
variable "metric_rate_expression" {
type = string
description = "The rate expression (<number> <unit>) at which the metric ingester will run. See [Rate Expressions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#RateExpressions) for more details."
default = "15 minutes"
}
variable "metric_statistics_conf" {
type = string
description = "Humio will only subscribe to the metric statistics specified."
default = ""
}
variable "metric_statistics_rate_expression" {
type = string
description = "The rate expression (<number> <unit>) at which the metric statistics ingester will run. See [Rate Expressions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#RateExpressions) for more details."
default = "15 minutes"
}
variable "log_level" {
type = string
description = "The log level for the Humio lambdas."
validation {
condition = contains(["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"], var.log_level)
error_message = "Must be one of ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']."
}
default = "INFO"
}
variable "s3_bucket" {
type = string
description = "The name of the S3 bucket where your lambda ingester code is located."
default = ""
}
variable "vpc_id" {
type = string
description = "Use a VPC for the lambda ingester functions. Pass in a vpc to enable."
default = ""
}
variable "security_group_ids" {
type = list(string)
description = "A list of security group ids for the VPC configuration regarding the ingester lambda functions. Only required if VPC is enabled."
default = []
}
variable "subnet_ids" {
type = list(string)
description = "A list of subnet ids used by the VPC configuration that the ingester lambda functions will be deployed into. Only required if VPC is enabled."
default = []
}