-
Notifications
You must be signed in to change notification settings - Fork 4
/
interface.yaml
538 lines (530 loc) · 15.9 KB
/
interface.yaml
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
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
# Copyright (c) 2023 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
###HEADER###
variableGroups:
- title: Hide constants and internal variables
visible: false
variables:
- tenancy_ocid
- compartment_ocid
- current_user_ocid
- region
- marketplace_source_images
- env_variables
- devops_pipeline_image
- devops_deploy_shape
- devops_memory
- devops_ocpu
- lb_health_check_timeout_in_millis
- lb_health_check_interval_ms
- lb_health_check_retries
- lb_listener_cypher_suite
- db_version
- db_license_model
- title: "General Configuration"
variables:
- compartment_id
- availability_domain
###APPLICATION_GROUP###
- title: "Stack authentication"
variables:
- use_existing_token
- current_user_token
- use_existing_vault
- new_vault_display_name
- vault_compartment_id
- vault_id
- key_id
- title: "Application Performance Monitoring"
variables:
- is_free_tier
- title: "Database"
variables:
- use_existing_database
- autonomous_database_display_name
- autonomous_database_admin_password
- data_storage_size_in_tbs
- cpu_core_count
- ocpu_count
- db_compartment
- autonomous_database
- autonomous_database_user
- autonomous_database_password
###APP_CONFIG_GROUP###
- title: "Application URL"
variables:
- create_fqdn
- dns_compartment
- zone
- subdomain
- title: "Network"
variables:
- create_new_vcn
- vcn_compartment_id
- existing_vcn_id
- vcn_cidr
- use_existing_app_subnet
- existing_app_subnet_id
- app_subnet_cidr
- use_existing_db_subnet
- existing_db_subnet_id
- db_subnet_cidr
- use_existing_lb_subnet
- existing_lb_subnet_id
- lb_subnet_cidr
- open_https_port
- use_reserved_ip_address
- reserved_ip_address
- certificate_ocid
- use_default_lb_configuration
- maximum_bandwidth_in_mbps
- minimum_bandwidth_in_mbps
- health_checker_url_path
- health_checker_return_code
- enable_session_affinity
- session_affinity
- session_affinity_cookie_name
- title: "Container instance configuration"
variables:
- shape
- memory_in_gbs
- ocpus
variables:
# General Configuration
compartment_id:
type: oci:identity:compartment:id
required: true
title: Compute Compartment
description: The compartment in which to create all Compute resources.
default: compartment_ocid
availability_domain:
type: oci:identity:availabilitydomain:name
required: true
title: Availability domain
description: The availability domain in which to create all Compute resources.
dependsOn:
compartmentId: ${compartment_id}
# Application
###APPLICATION###
# APM
is_free_tier:
type: boolean
required: true
title: Create as Always Free Domain
description: Up to 1000 spans per hour, 31 day storage for trace data and 10 monitor runs per hour.
default: false
# Database
use_existing_database:
type: boolean
default: true
required: true
title: Use existing database (Autonomous Database Serverless)
autonomous_database_display_name:
type: string
required: true
title: Autonomous Database display name
description: A user-friendly name to help you easily identify the resource.
visible:
not:
- use_existing_database
autonomous_database_admin_password:
type: password
title: Database ADMIN password
# validate
description: Password must be 12 to 30 characters and contain at least one uppercase letter, one lowercase letter, and one number. The password cannot contain the double quote (") character or the username "admin".
required: true
visible:
not:
- use_existing_database
data_storage_size_in_tbs:
type: number
required: true
title: Storage (TB)
description: The amount of storage to allocate.
default: 1
visible:
not:
- use_existing_database
# cpu_core_count:
# type: number
# required: true
# title: CPU core count
# description: The number of OCPU cores to be made available to the database
# default: 2
# visible:
# not:
# - use_existing_database
ocpu_count:
type: number
required: true
title: OCPU count
description: The number of OCPU cores to enable. Available cores are subject to your tenancy's service limits.
default: 1
visible:
not:
- use_existing_database
db_compartment:
type: oci:identity:compartment:id
required: true
title: Autonomous Database compartment
description: The compartment conataining the Autonomous Database.
default: ${compartment_id}
visible:
and:
- use_existing_database
autonomous_database:
type: oci:database:autonomousdatabase:id
required: true
title: Autonomous Database
description: The Autonomous Database used by the application.
dependsOn:
compartmentId: ${db_compartment}
visible:
and:
- use_existing_database
autonomous_database_user:
type: string
required: true
title: DB username
default: ""
description: The username used to connect to the database.
visible:
and:
- use_existing_database
autonomous_database_password:
type: password
title: DB user password
required: true
description: The password of the user used to access the database.
visible:
and:
- use_existing_database
# Vault
use_existing_vault:
type: boolean
title: Use an existing key vault
required: true
default: true
description: This vault will be used to store the authentication token needed by the build and deploy pipelines to publish the container image to the container registry.
new_vault_display_name:
type: string
title: Key vault display name
description: A user-friendly name to help you easily identify the resource.
required: true
visible:
not:
- use_existing_vault
vault_compartment_id:
type: oci:identity:compartment:id
required: true
title: Compartment
description: The compartment containing the existing vault.
default: compartment_ocid
visible:
and:
- use_existing_vault
vault_id:
type: oci:kms:vault:id
required: true
title: Vault
description: Choose an existing vault used to store the authentication token.
dependsOn:
compartmentId: ${vault_compartment_id}
visible:
and:
- use_existing_vault
key_id:
type: oci:kms:key:id
required: true
title: Encryption key
description: This key will be used to encrypt the sensitive information stored as vault secrets.
dependsOn:
compartmentId: ${vault_compartment_id}
vaultId: ${vault_id}
visible:
and:
- use_existing_vault
use_existing_token:
type: boolean
required: true
title: Use existing authentication token
description: This token will be used by the stack to authenticate the user when connecting to the code repository or container registry.
default: true
current_user_token:
type: password
required: true
title: User's authentication token
visible: use_existing_token
###APP_CONFIG###
# FQDN
create_fqdn:
type: boolean
required: true
default: true
title: Create DNS record
description: If you check this checkbox the stack will create a DNS record that will resolve to the load balancer's IP address.
dns_compartment:
type: oci:identity:compartment:id
required: true
default: compartment_ocid
title: DNS and Certificate compartement
description: Compartment containing the DNS Zone and the Certificate
visible: create_fqdn
zone:
type: string
required: true
title: DNS Zone
description: Domain name in which the host name will be created.
visible: create_fqdn
subdomain:
type: string
required: true
title: Host name
description: The host name will be created on the selected Zone and will resolve to the the load balancer's IP address.
visible: create_fqdn
# Network
create_new_vcn:
type: boolean
required: true
title: Create new VCN
default: true
vcn_compartment_id:
type: oci:identity:compartment:id
required: true
title: The compartment of the existing VCN.
default: compartment_ocid
visible:
not:
- create_new_vcn
existing_vcn_id:
type: oci:core:vcn:id
required: true
title: Select to VCN
visible:
not:
- create_new_vcn
dependsOn:
compartmentId: ${vcn_compartment_id}
vcn_cidr:
type: string
required: true
title: VCN IPv4 CIDR Blocks
description: This VCN will be used for all resources created by the stack.
default: "10.0.0.0/24"
pattern: "^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\/(3[0-2]|[1-2]?[0-9])$"
visible: create_new_vcn
use_existing_app_subnet:
type: boolean
required: true
title: Use existing Application Subnet
default: false
visible:
not:
- create_new_vcn
existing_app_subnet_id:
type: oci:core:subnet:id
required: true
title: Select the application subnet
dependsOn:
compartmentId: ${vcn_compartment_id}
vcnId: ${existing_vcn_id}
hidePublicSubnet: true
visible: use_existing_app_subnet
app_subnet_cidr:
type: string
required: true
title: Application Subnet IPv4 CIDR Blocks
description: The container instances running the application will be created in this subnet.
default: "10.0.0.0/25"
pattern: "^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\/(3[0-2]|[1-2]?[0-9])$"
visible:
not:
- use_existing_app_subnet
use_existing_db_subnet:
type: boolean
required: true
title: Use existing Database Subnet
default: false
visible:
and:
- not:
- create_new_vcn
- not:
- use_existing_database
existing_db_subnet_id:
type: oci:core:subnet:id
required: true
title: Select the database subnet
dependsOn:
compartmentId: ${vcn_compartment_id}
vcnId: ${existing_vcn_id}
hidePublicSubnet: true
visible: use_existing_db_subnet
db_subnet_cidr:
type: string
required: true
title: "Database Subnet Creation: IPv4 CIDR Blocks"
description: "The Autonomous Database will be created in this subnet. For example: 10.0.0.128/26"
default: "10.0.0.128/26"
pattern: "^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\/(3[0-2]|[1-2]?[0-9])$"
visible:
and:
- not:
- use_existing_db_subnet
- not:
- use_existing_database
use_existing_lb_subnet:
type: boolean
required: true
title: Use existing Load Balancer Subnet
default: false
visible:
not:
- create_new_vcn
existing_lb_subnet_id:
type: oci:core:subnet:id
required: true
title: Select the load balancer subnet
dependsOn:
compartmentId: ${vcn_compartment_id}
vcnId: ${existing_vcn_id}
hidePublicSubnet: false
visible: use_existing_lb_subnet
lb_subnet_cidr:
type: string
required: true
title: Load balancer Subnet IPv4 CIDR Blocks
description: The load balancer will be created in this subnet.
pattern: "^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\/(3[0-2]|[1-2]?[0-9])$"
default: "10.0.0.192/26"
visible:
not:
- use_existing_lb_subnet
open_https_port:
type: boolean
required: true
title: Open load balancer's HTTPS port
description: By checking this checkbox you agree to make the load balancer
subnet public and to open the HTTPS port of the load balancer to the
Internet.
default: false
use_reserved_ip_address:
type: boolean
required: true
title: Use a reserved IP address
visible: open_https_port
reserved_ip_address:
type: string
required: true
title: Reserved IP address
description: Pre-created public IP that will be used as the IP of this load balancer. This reserved IP will not be deleted when load balancer is deleted. This ip should not be already mapped to any other resource.
visible:
and:
- open_https_port
- use_reserved_ip_address
certificate_ocid:
type: string
required: false
title: Certificate OCID
description: You must have a SSL certificate available in OCI Certificates service. Provide the certificate OCID for the host name.
visible: open_https_port
# Container instances configuration
shape:
type: enum
required: true
title: Container instance shape
description: A shape is a template that determines the number of OCPUs, amount of memory, and other resources that are allocated to a container instance.
default: "CI.Standard.E3.Flex"
enum:
- CI.Standard.E3.Flex
- CI.Standard.E4.Flex
memory_in_gbs:
type: number
required: true
title: Memory (GB)
default: 8
minimum: 1
maximum: 1024
description: Min - 1 GB or a value matching the number of OCPUs, whichever is greater. Max - 64 GB per OCPU, up to 1024 GB total
ocpus:
type: number
required: true
title: OCPU
description: Min - 1 OCPU. Max - 64 OCPU
default: 2
minimum: 1
maximum: 64
# Load balancer
use_default_lb_configuration:
type: boolean
required: true
title: Use default load balancer configuration
default: true
maximum_bandwidth_in_mbps:
type: number
required: true
title: Maximum bandwidth (Mbps)
description: 10Mbps for always free load balancer
default: 10
visible:
not:
- use_default_lb_configuration
minimum_bandwidth_in_mbps:
type: number
required: true
title: Minimum bandwidth (Mbps)
description: 10Mbps for always free load balancer
default: 10
visible:
not:
- use_default_lb_configuration
health_checker_url_path:
type: string
required: true
title: URL path (URI)
description: This url will be used by the health checker to verify that the application is running
default: "/"
visible:
not:
- use_default_lb_configuration
health_checker_return_code:
type: number
required: true
title: Status code
description: Status code returned by the health checker url when the application is running
default: 200
visible:
not:
- use_default_lb_configuration
enable_session_affinity:
type: boolean
required: true
default: false
title: Enable cookie-based session persistence
visible:
not: use_default_lb_configuration
session_affinity:
type: enum
required: true
title: Session persistence
description: Specify whether the cookie is generated by your application server or by the load balancer.
enum:
- Enable application cookie persistence
- Enable load balancer cookie persistence
visible: enable_session_affinity
session_affinity_cookie_name:
type: string
required: true
title: Cookie name
discription: Specify '*' to match any cookie name.
default: X-Oracle-BMC-LBS-Route
visible: enable_session_affinity
outputGroups:
- title: Application
outputs:
- app_url
outputs:
app_url:
type: link
title: Application URL
visible: true