-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
144 lines (119 loc) · 3.63 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
variable "name" {
description = "A name which will be pre-pended to the resources created"
type = string
}
variable "region" {
description = "The name of the region to deploy within"
type = string
}
variable "network" {
description = "The name of the network to deploy within"
type = string
}
variable "subnetwork" {
description = "The name of the sub-network to deploy within; if populated will override the 'network' setting"
type = string
default = ""
}
variable "ingress_port" {
description = "The port that the collector will be bound to and expose over HTTP"
type = number
default = 8080
}
variable "health_check_path" {
description = "The path to bind for health checks"
type = string
default = "/health"
}
variable "machine_type" {
description = "The machine type to use"
type = string
default = "e2-small"
}
variable "target_size" {
description = "The number of servers to deploy"
default = 1
type = number
}
variable "associate_public_ip_address" {
description = "Whether to assign a public ip address to this instance; if false this instance must be behind a Cloud NAT to connect to the internet"
type = bool
default = true
}
variable "ssh_ip_allowlist" {
description = "The list of CIDR ranges to allow SSH traffic from"
type = list(any)
default = ["0.0.0.0/0"]
}
variable "ssh_block_project_keys" {
description = "Whether to block project wide SSH keys"
type = bool
default = true
}
variable "ssh_key_pairs" {
description = "The list of SSH key-pairs to add to the servers"
default = []
type = list(object({
user_name = string
public_key = string
}))
}
variable "ubuntu_20_04_source_image" {
description = "The source image to use which must be based of of Ubuntu 20.04; by default the latest community version is used"
default = ""
type = string
}
variable "labels" {
description = "The labels to append to this resource"
default = {}
type = map(string)
}
variable "gcp_logs_enabled" {
description = "Whether application logs should be reported to GCP Logging"
default = true
type = bool
}
# --- Configuration options
variable "topic_project_id" {
description = "The project ID in which the topics are deployed"
type = string
}
variable "good_topic_name" {
description = "The name of the good pubsub topic that the collector will insert data into"
type = string
}
variable "bad_topic_name" {
description = "The name of the bad pubsub topic that the collector will insert data into"
type = string
}
variable "cookie_domain" {
description = "Optional first party cookie domain for the collector to set cookies on (e.g. acme.com)"
default = ""
type = string
}
variable "byte_limit" {
description = "The amount of bytes to buffer events before pushing them to PubSub"
default = 1000000
type = number
}
variable "record_limit" {
description = "The number of events to buffer before pushing them to PubSub"
default = 500
type = number
}
variable "time_limit_ms" {
description = "The amount of time to buffer events before pushing them to PubSub"
default = 500
type = number
}
# --- Telemetry
variable "telemetry_enabled" {
description = "Whether or not to send telemetry information back to Snowplow Analytics Ltd"
type = bool
default = true
}
variable "user_provided_id" {
description = "An optional unique identifier to identify the telemetry events emitted by this stack"
type = string
default = ""
}