-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathvariables.tf
276 lines (232 loc) · 6.65 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
# AWS region variable
variable "region" {
type = string
description = "Deployment region."
default = "us-east-1"
}
# AWS configuration
variable "common-tags" {
type = map(string)
description = "A set of tags to attach to every created resource."
default = {}
}
variable "variants-bucket-prefix" {
type = string
description = "S3 bucket for storing vcf summaries used for duplicate variant searches"
default = "sbeacon-variants-"
}
variable "metadata-bucket-prefix" {
type = string
description = "S3 bucket for storing metadata"
default = "sbeacon-metadata-"
}
variable "lambda-layers-bucket-prefix" {
type = string
description = "S3 bucket for storing lambda layers"
default = "sbeacon-lambda-layers-"
}
# Beacon variables
variable "beacon-id" {
type = string
description = "Unique identifier of the beacon. Use reverse domain name notation."
default = "au.csiro.sbeacon"
}
variable "beacon-name" {
type = string
description = "Human readable name of the beacon."
default = "CSIRO Serverless Beacon"
}
variable "beacon-api-version" {
type = string
description = "Value for beacon api version"
default = "v2.0.0"
}
variable "beacon-environment" {
type = string
description = "Value for beacon environment"
default = "dev"
}
variable "beacon-description" {
type = string
description = "Value for beacon description"
default = "Serverless Beacon (sBeacon)"
}
variable "beacon-version" {
type = string
description = "Value for beacon version"
default = "v0.1.0"
}
variable "beacon-welcome-url" {
type = string
description = "Value for beacon welcome url"
default = "https://bioinformatics.csiro.au/"
}
variable "beacon-alternative-url" {
type = string
description = "Value for beacon alternative url"
default = "https://bioinformatics.csiro.au/"
}
variable "beacon-create-datetime" {
type = string
description = "Value for beacon create datetime"
default = "2018-11-26H00:00:00Z"
}
variable "beacon-update-datetime" {
type = string
description = "Value for beacon update datetime"
default = "2023-03-16H00:00:00Z"
}
variable "beacon-handovers" {
type = string
description = "Value for beacon handovers (use a stringified array)"
default = "[]"
}
variable "beacon-documentation-url" {
type = string
description = "Value for beacon documentation url"
default = "https://github.com/EGA-archive/beacon2-ri-api"
}
variable "beacon-default-granularity" {
type = string
description = "Value for beacon default granularity"
default = "boolean"
}
variable "beacon-uri" {
type = string
description = "Value for beacon-uri"
default = "https://beacon.csiro.au"
}
# Organisation variables
variable "organisation-id" {
type = string
description = "Unique identifier of the organisation providing the beacon."
default = "CSIRO"
}
variable "organisation-name" {
type = string
description = "Name of the organisation providing the beacon."
default = "CSIRO"
}
variable "beacon-org-description" {
type = string
description = "Value for beacon organisation description"
default = "CSIRO, Australia"
}
variable "beacon-org-address" {
type = string
description = "Value for beacon orgisation adress"
default = "AEHRC, Westmead NSW, Australia"
}
variable "beacon-org-welcome-url" {
type = string
description = "Value for beacon organisation welcome url"
default = "https://bioinformatics.csiro.au/"
}
variable "beacon-org-contact-url" {
type = string
description = "Value for beacon organisation contact url"
default = "https://bioinformatics.csiro.au/get-in-touch/"
}
variable "beacon-org-logo-url" {
type = string
description = "Value for beacon organisation logo url"
default = "https://raw.githubusercontent.com/aehrc/terraform-aws-serverless-beacon/master/assets/logo-tile.png"
}
# Beacon service variables
variable "beacon-service-type-group" {
type = string
description = "Value for beacon service type group"
default = "au.csiro"
}
variable "beacon-service-type-artifact" {
type = string
description = "Value for beacon service type artifact"
default = "beacon"
}
variable "beacon-service-type-version" {
type = string
description = "Value for beacon service type version"
default = "1.0"
}
# auth configurations
variable "beacon-enable-auth" {
type = bool
description = "Flag to enable API authentication"
default = false
}
variable "beacon-guest-username" {
type = string
description = "Value for guest username (must be an email)"
default = "guest@example.com"
}
variable "beacon-guest-password" {
type = string
description = "Value for guest password"
default = "guest1234"
}
variable "beacon-admin-username" {
type = string
description = "Value for admin username (must be an email)"
default = "admin@example.com"
}
variable "beacon-admin-password" {
type = string
description = "Value for admin password"
default = "admin1234"
}
variable "beacon-demo-username" {
type = string
description = "Value for demo username (must be an email)"
default = "demo@example.com"
}
variable "beacon-demo-password" {
type = string
description = "Value for demo password"
default = "demo1234"
}
# configuration variables
variable "config-max-variant-search-base-range" {
type = number
description = "Max allowed range for variant searching"
default = 10000
}
# OPENAI config
variable "azure-openai-api-key" {
type = string
default = null
description = "Azure openai api key"
}
variable "azure-openai-endpoint" {
type = string
default = null
description = "Azure openai endpoint"
}
variable "azure-openai-api-version" {
type = string
default = null
description = "Azure openai api version"
}
variable "azure-openai-chat-deployment-name" {
type = string
default = null
description = "Azure openai chat deployment name"
}
variable "openai-api-key" {
type = string
default = null
description = "OpenAI api key"
}
variable "openai-completions-model-name" {
type = string
default = "gpt-4-turbo"
description = "OpenAI model name"
}
variable "openai-embedding-model-name" {
type = string
default = "text-embedding-3-small"
description = "OpenAI embedding model name"
}
variable "embedding-distance-threshold" {
type = number
default = 0.9
}