generated from oracle-devrel/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
executable file
·444 lines (347 loc) · 10.9 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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
### Copyright (c) 2022, Oracle and/or its affiliates.
### All rights reserved. The Universal Permissive License (UPL), Version 1.0 as shown at http://oss.oracle.com/licenses/upl
variable "tenancy_ocid" {}
variable "compartment_ocid" {}
variable "user_ocid" {}
variable "fingerprint" {}
variable "private_key_path" {}
variable "region" {}
variable "app_name" {
default = "cwiotapp"
description = "Application name. Will be used as prefix to identify resources, such as OKE, VCN, DevOps, and others"
}
variable "oci_user_name" {}
variable "oci_user_authtoken" {}
variable "release" {
description = "Reference Architecture Release (OCI Architecture Center)"
default = "0.0"
}
/*API Gateway Variables **********/
variable "gateway_displayname" {
default = "apigateway"
}
variable "gateway_visibility" {
default = "PUBLIC"
}
variable "path_prefix" {
default = "/admin-api"
}
/********** API Gateway Variables **********/
/********** VCN Variables **********/
variable "VCN-CIDR" {
default = "10.100.0.0/16"
}
variable "Public-Subnet-CIDR" {
default = "10.100.0.0/24"
}
variable "Private-Subnet-CIDR" {
default = "10.100.10.0/24"
}
variable "application_network_cidrs" {
type = map(string)
default = {
VCN-CIDR = "10.100.0.0/16"
PRIVATE-SUBNET-CIDR = "10.100.10.0/24"
PUBLIC-SUBNET-CIDR = "10.100.0.0/24"
ALL-CIDR = "0.0.0.0/0"
}
}
/********** VCN Variables **********/
/********** MySQL Variables **********/
variable "availability_domain_name" {
default = ""
}
variable "mysql_instance_compartment_name" {
description = "Compartment where MySQL Instance will be created"
default = ""
}
variable "mysql_network_compartment_name" {
description = "Compartment where the network of MySQL artifact is"
default = ""
}
variable "mysql_instance_compartment_ocid" {
description = "OCID of the compartment where MySQL Instance will be created. Use alternatively to mysql_instance_compartment_name"
default = ""
}
variable "mysql_network_compartment_ocid" {
description = "OCID of the compartment where the network of MySQL artifact is. Use alternatively to mysql_network_compartment_name"
default = ""
}
variable "mysql_db_system_admin_password" {
description = "(Required) The password for the administrative user. The password must be between 8 and 32 characters long, and must contain at least 1 numeric character, 1 lowercase character, 1 uppercase character, and 1 special (nonalphanumeric) character."
}
variable "mysql_db_system_admin_username" {
description = "(Required) The username for the administrative user."
}
variable "mysql_db_system_backup_policy_is_enabled" {
description = "Boolean that defines if either backup is enabled or not"
default = false
}
variable "mysql_db_system_backup_policy_retention_in_days" {
description = "The number of days automated backups are retained."
default = 7
}
variable "mysql_db_system_backup_policy_window_start_time" {
description = "The start of a 30-minute window of time in which daily, automated backups occur. This should be in the format of the Time portion of an RFC3339-formatted timestamp. Any second or sub-second time data will be truncated to zero. At some point in the window, the system may incur a brief service disruption as the backup is performed."
default = ""
}
variable "mysql_db_system_data_storage_size_in_gb" {
description = "Initial size of the data volume in GiBs that will be created and attached."
default = 50
}
variable "mysql_db_system_description" {
description = "User-provided data about the DB System."
default = "iot health db"
}
variable "mysql_db_system_freeform_tags" {
description = "Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace."
default = {}
}
variable "mysql_db_system_is_highly_available" {
description = "Boolean that describes if either HA is enabled or not"
default = true
}
variable "mysql_db_system_port" {
description = "(Optional) The port for primary endpoint of the DB System to listen on."
default = "3306"
}
variable "mysql_db_system_port_x" {
description = "(Optional) The TCP network port on which X Plugin listens for connections. This is the X Plugin equivalent of port."
default = "33060"
}
variable "mysql_shape_name" {
description = "(Required) The name of the shape. The shape determines the resources allocated. CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. To get a list of shapes, use the ListShapes operation."
default = "MySQL.VM.Standard.E3.1.8GB"
}
variable "mysql_heatwave_enabled" {
description = "Defines whether a MySQL HeatWave cluster is enabled"
default = false
}
variable "mysql_heatwave_cluster_size" {
description = "Number of MySQL HeatWave nodes to be created"
default = 2
}
variable "mysql_heatwave_shape" {
description = "The shape to be used instead of mysql_shape_name when mysql_heatwave_enabled = true."
default = "MySQL.HeatWave.VM.Standard.E3"
}
/********** MySQL Variables **********/
/********** Objectstorage Variables **********/
variable "bucket_access_type" {
default = "NoPublicAccess"
}
variable "bucket_auto_tiering" {
default = "Disabled"
}
variable "bucket_storage_tier" {
default = "Standard"
}
variable "bucket_versioning" {
default = "Disabled"
}
/********** Objectstorage Variables **********/
/********** Vault Variables **********/
variable "vault_vault_type" {
default = "DEFAULT"
}
variable "vault_key_shape_algorithm" {
default = "AES"
}
variable "key_key_shape_length" {
default = 32
}
variable "vault_key_protection_mode" {
default = "HSM"
}
variable "vault_app_env_user" {
default = "root"
}
/********** Vault Variables **********/
/********** Stream Variables **********/
variable "stream_partition_count" {
default = 1 #10
}
variable "stream_retention_in_hours" {
default = 24
}
/********** Stream Variables **********/
/********** Queue Variables **********/
variable "oci_queue_ocid" {
}
/********** Queue Variables **********/
/********** SMTP Variables **********/
variable "auth_profile" {
default = "InstancePrincipal"
}
variable "email_domain_name" {
default = "demo.com"
}
variable "sender_email_address" {
default = "[email protected]"
}
variable "smtp_user_ocid" {
description = "smtp user ocid"
}
/********** SMTP Variables **********/
/********** Dataflow Variables **********/
variable "dataflow_arguments" {
default = []
}
variable "dataflow_mainclass" {
default = "com.oracle.cloud.wearable.streaming.analytics.HealthEventAnalysis"
}
variable "dataflow_authmode" {
default = "resource_principal"
}
variable "dataflow_maxExecutors" {
default = "4"
}
variable "dataflow_minExecutors" {
default = "2"
}
variable "dataflow_driver_shape" {
default = "VM.Standard.E4.Flex"
}
variable "dataflow_executor_shape" {
default = "VM.Standard.E4.Flex"
}
variable "dataflow_num_executors" {
default = 2
}
variable "dataflow_spark_version" {
default = "3.2.1"
}
variable "dataflow_type" {
default = "STREAMING"
}
variable "dataflow_driver_shape_config_memory_in_gbs" {
default = 64
}
variable "dataflow_driver_shape_config_ocpus" {
default = 8
}
variable "dataflow_executor_shape_config_memory_in_gbs" {
default = 32
}
variable "dataflow_executor_shape_config_ocpus" {
default = 4
}
/********** Dataflow Variables **********/
/********** Devops Variables **********/
variable "container_repository_is_public" {
default = true
}
variable "deploy_artifact_argument_substitution_mode" {
default = "SUBSTITUTE_PLACEHOLDERS"
}
variable "project_logging_config_retention_period_in_days" {
default = 30
}
variable "project_description" {
default = "DevOps CI/CD Sample Project for IOT Wearable app"
}
variable "repository_name" {
default = "java-oci-wearable"
}
variable "repository_default_branch" {
default = "main"
}
variable "repository_description" {
default = "OCI Wearable APP Code base"
}
variable "git_branch" {
default = "main"
}
variable "git_repo" {
default = "https://github.com/oracle-devrel/oci-wearable-health-app"
}
variable "git_repo_name" {
default = "oci-wearable-health-app" #It must be same as that of actual github reponame.
}
variable "buildparam_baseimage_notificationservice" {
default = "adoptopenjdk/openjdk8"
}
locals {
ocir_docker_repository = join("", [lower(lookup(data.oci_identity_regions.current_region.regions[0], "key")), ".ocir.io"])
#ocir_docker_repository = join("", [lower(lookup(data.oci_identity_regions.home_region.regions[0], "key")), ".ocir.io"])
#ocir_namespace = lookup(data.oci_identity_tenancy.oci_tenancy, "name" )
ocir_namespace = lookup(data.oci_objectstorage_namespace.ns, "namespace")
}
variable "repository_repository_type" {
default = "HOSTED"
}
variable "build_pipeline_stage_build_pipeline_stage_type" {
default = "BUILD"
}
variable "build_pipeline_stage_build_source_collection_items_connection_type" {
default = "DEVOPS_CODE_REPOSITORY"
}
variable "build_pipeline_stage_build_source_collection_items_branch" {
default = "main"
}
variable "build_pipeline_stage_build_source_collection_items_name" {
default = "source"
}
variable "notification_buildspec" {
default = "/notification-service/build_spec.yaml"
}
variable "tcpserver_buildspec" {
default = "/tcp-server/build_spec.yaml"
}
variable "webui_buildspec" {
default = "/web-app/build_spec.yaml"
}
variable "adminapi_buildspec" {
default = "/admin-api/build_spec.yaml"
}
variable "adminapi_authorizer_buildspec" {
default = "/admin-api-authorizer/build_spec.yaml"
}
variable "dataflow_buildspec" {
default = "/healtheventanalysis/build_spec.yaml"
}
variable "dbsetup_buildspec" {
default = "/DB-Setup/build_spec.yaml"
}
variable "build_pipeline_stage_display_name" {
default = "Managed Build of Application"
}
variable "build_pipeline_stage_image" {
default = "OL7_X86_64_STANDARD_10"
}
variable "build_pipeline_stage_wait_criteria_wait_duration" {
default = "waitDuration"
}
variable "build_pipeline_stage_wait_criteria_wait_type" {
default = "ABSOLUTE_WAIT"
}
variable "build_pipeline_stage_stage_execution_timeout_in_seconds" {
default = 36000
}
variable "build_pipeline_stage_deliver_artifact_stage_type" {
default = "DELIVER_ARTIFACT"
}
variable "deliver_artifact_stage_display_name" {
default = "Deliver Artifacts"
}
variable "build_pipeline_stage_deploy_stage_type" {
default = "TRIGGER_DEPLOYMENT_PIPELINE"
}
variable "deploy_stage_display_name" {
default = "Invoke Deployment"
}
variable "build_pipeline_stage_is_pass_all_parameters_enabled" {
default = true
}
variable "oke_deploy_rollback_policy" {
default = "AUTOMATED_STAGE_ROLLBACK_POLICY"
}
variable "oke_namespace" {
default = "svc"
}
variable "oke_externalsecret_operator_url" {
default = "https://charts.external-secrets.io"
}
variable "metric_server_version" {
default = "v0.6.1"
}