generated from snowplow-devops/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
137 lines (112 loc) · 3.49 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
variable "accept_limited_use_license" {
description = "Acceptance of the SLULA terms (https://docs.snowplow.io/limited-use-license-1.0/)"
type = bool
default = false
validation {
condition = var.accept_limited_use_license
error_message = "Please accept the terms of the Snowplow Limited Use License Agreement to proceed."
}
}
variable "name" {
description = "A name which will be pre-pended to the resources created"
type = string
}
variable "app_version" {
description = "App version to use. This variable facilitates dev flow, the modules may not work with anything other than the default value."
type = string
default = "0.12.0"
}
variable "resource_group_name" {
description = "The name of the resource group to deploy the service into"
type = string
}
variable "subnet_id" {
description = "The subnet id to deploy the load balancer across"
type = string
}
variable "application_gateway_backend_address_pool_ids" {
description = "The ID of an Application Gateway backend address pool to bind the VM scale-set to the load balancer"
type = list(string)
default = []
}
variable "ingress_port" {
description = "The port that the Iglu Server will be bound to and expose over HTTP"
type = number
}
variable "vm_sku" {
description = "The instance type to use"
type = string
default = "Standard_B1ms"
}
variable "vm_instance_count" {
description = "The instance count to use"
type = number
default = 1
}
variable "associate_public_ip_address" {
description = "Whether to assign a public ip address to this instance"
type = bool
default = true
}
variable "ssh_public_key" {
description = "The SSH public key attached for access to the servers"
type = string
}
variable "ssh_ip_allowlist" {
description = "The comma-seperated list of CIDR ranges to allow SSH traffic from"
type = list(string)
default = ["0.0.0.0/0"]
}
variable "tags" {
description = "The tags to append to this resource"
default = {}
type = map(string)
}
variable "java_opts" {
description = "Custom JAVA Options"
default = "-XX:InitialRAMPercentage=75 -XX:MaxRAMPercentage=75"
type = string
}
# --- Configuration options
variable "db_host" {
description = "The hostname of the database to connect to"
type = string
}
variable "db_port" {
description = "The port the database is running on"
type = number
}
variable "db_name" {
description = "The name of the database to connect to"
type = string
}
variable "db_username" {
description = "The username to use to connect to the database"
type = string
}
variable "db_password" {
description = "The password to use to connect to the database"
type = string
sensitive = true
}
variable "super_api_key" {
description = "A UUIDv4 string to use as the master API key for Iglu Server management"
type = string
sensitive = true
}
variable "patches_allowed" {
description = "Whether or not patches are allowed for published Iglu Schemas"
type = bool
default = true
}
# --- 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 = ""
}