/
ds-cis-universal-template-rhel7-v1.yaml
3065 lines (3044 loc) · 123 KB
/
ds-cis-universal-template-rhel7-v1.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
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
AWSTemplateFormatVersion: 2010-09-09
Description: DataSunrise Database and Data Security - Network Load Balancer universal template
Mappings:
RegionMap:
eu-central-1:
AMI: ami-054c2d6641282024d
ap-south-2:
AMI: ami-0c04b9492ca435728
ap-south-1:
AMI: ami-0c502d21707921f93
eu-south-1:
AMI: ami-0109a74b1e200c7ca
eu-south-2:
AMI: ami-0831d3a6f38ef7ccf
me-central-1:
AMI: ami-00f1945842673ec66
il-central-1:
AMI: ami-0eab67c85cfd6d11e
ca-central-1:
AMI: ami-07d119f1d4210a86a
eu-central-2:
AMI: ami-0163746e0f7af78ab
us-west-1:
AMI: ami-0540d33c58a913a06
us-west-2:
AMI: ami-035e3c18c3913e8bc
af-south-1:
AMI: ami-0907a1353b02fa165
eu-north-1:
AMI: ami-0d419eae6e26b5ec6
eu-west-3:
AMI: ami-03bad48a762466ed2
eu-west-2:
AMI: ami-04cfba2a81b283003
eu-west-1:
AMI: ami-03285ea13de260573
ap-northeast-3:
AMI: ami-03e1eec8a72ba344b
ap-northeast-2:
AMI: ami-0b92d1c48ec2d225b
me-south-1:
AMI: ami-05f11069aa54ef19c
ap-northeast-1:
AMI: ami-06f2c4bf97b03cba9
sa-east-1:
AMI: ami-08fbf86526903ed34
ap-east-1:
AMI: ami-0becd9dc24c05baa8
ca-west-1:
AMI: ami-0d69c0e94156b3250
ap-southeast-1:
AMI: ami-040384e90780d942b
ap-southeast-2:
AMI: ami-00e4618b6efc9ffbf
ap-southeast-3:
AMI: ami-0e9f93ce1c5041bdb
ap-southeast-4:
AMI: ami-08f215c4b8ddb169c
us-east-1:
AMI: ami-0fafa8ce48e6a2ed2
us-east-2:
AMI: ami-06fb38857127dda4f
Consts:
V1:
AMIProductCode: e4d3d3b6266ocd12it8gny7gh
CARProductCode: 88q6e9h0zcpo4hpvxrxtlglgd
DSCloudWatchEventSource: DataSunrise
DSRoot: /opt/datasunrise
DSCloudRoot: /opt/ds-cloud
BackupUploadLog: /tmp/backup-upload.log
BackupTempDir: /tmp/ds-backups
AliveMetricName: ServiceAlive
AliveMetricNamespace: DataSunrise
AliveMetricLog: /tmp/send-alive.log
LoadBalancerIdleTimeout: '3600'
pgPort: '5432'
myPort: '3306'
msPort: '1433'
AuditInternalParameterPg: '1'
AuditInternalParameterMy: '2'
AuditInternalParameterMs: '6'
AuditInternalParameterAuMy: '4'
AuditInternalParameterAuPg: '7'
DictionaryInternalParameterPg: postgresql
DictionaryInternalParameterMy: mysql
DictionaryInternalParameterMs: mssql
DictionaryEnginePg: postgres
DictionaryEngineMy: mysql
DictionaryEngineMs: sqlserver-se
AuditEnginePg: postgres
AuditEngineMy: mysql
AuditEngineMs: sqlserver-se
EngineVersionPg: '15'
EngineVersionMy: '8.0'
EngineVersionMs: '14.00'
AuditAuroraEnginePg: aurora-postgresql
AuditAuroraEngineMy: aurora-mysql
AuditAuroraEngineVersionPg: '15'
AuditAuroraEngineVersionMy: '8.0'
ParameterGroupFamilyPg: 'postgres15'
ParameterGroupFamilyMy: 'MySQL8.0'
DictionaryParameterGroupFamilyMs: 'sqlserver-se-14.0'
AuditParameterGroupFamilyMs: 'sqlserver-se-14.0'
ParameterGroupFamilyPgCluster: aurora-postgresql15
ParameterGroupFamilyMyCluster: aurora-mysql8.0
PostgresLicenseModel: 'postgresql-license'
MysqlLicenseModel: 'general-public-license'
MssqlLicenseModel: 'license-included'
Parameters:
DirectoryServiceId:
Description: Prefered AWS AD Id. Must belong mentioned VPC.
Type: String
ADLogin:
Description: The AD user login that may join to AD
Type: String
ADPassword:
NoEcho: 'true'
Type: String
ADCIDR:
Description: IP address range that can be used access AD ports, look at https://docs.aws.amazon.com/directoryservice/latest/admin-guide/ms_ad_tutorial_setup_trust_prepare_mad.html
Type: String
TimeZone:
Type: String
Default: America/Los_Angeles
AllowedValues:
- Africa/Lagos
- Africa/Mogadishu
- Africa/Monrovia
- Africa/Nairobi
- Africa/Tripoli
- Africa/Tunis
- America/Anchorage
- America/Argentina/Buenos_Aires
- America/Argentina/San_Juan
- America/Argentina/San_Luis
- America/Aruba
- America/Asuncion
- America/Atikokan
- America/Bahia
- America/Bahia_Banderas
- America/Barbados
- America/Belem
- America/Belize
- America/Blanc-Sablon
- America/Boa_Vista
- America/Bogota
- America/Boise
- America/Cambridge_Bay
- America/Campo_Grande
- America/Cancun
- America/Caracas
- America/Cayenne
- America/Cayman
- America/Chicago
- America/Chihuahua
- America/Costa_Rica
- America/Creston
- America/Cuiaba
- America/Curacao
- America/Danmarkshavn
- America/Dawson
- America/Dawson_Creek
- America/Denver
- America/Detroit
- America/Dominica
- America/Edmonton
- America/Eirunepe
- America/El_Salvador
- America/Fort_Nelson
- America/Fortaleza
- America/Glace_Bay
- America/Goose_Bay
- America/Grand_Turk
- America/Grenada
- America/Guadeloupe
- America/Guatemala
- America/Guayaquil
- America/Guyana
- America/Halifax
- America/Havana
- America/Hermosillo
- America/Indiana/Indianapolis
- America/Indiana/Knox
- America/Indiana/Marengo
- America/Indiana/Petersburg
- America/Indiana/Tell_City
- America/Indiana/Vevay
- America/Indiana/Vincennes
- America/Indiana/Winamac
- America/Inuvik
- America/Iqaluit
- America/Jamaica
- America/Juneau
- America/Kentucky/Louisville
- America/Kentucky/Monticello
- America/Kralendijk
- America/La_Paz
- America/Lima
- America/Los_Angeles
- America/Lower_Princes
- America/Maceio
- America/Managua
- America/Manaus
- America/Marigot
- America/Martinique
- America/Matamoros
- America/Mazatlan
- America/Menominee
- America/Merida
- America/Metlakatla
- America/Mexico_City
- America/Miquelon
- America/Moncton
- America/Monterrey
- America/Montevideo
- America/Montserrat
- America/Nassau
- America/New_York
- America/Nipigon
- America/Nome
- America/Noronha
- America/North_Dakota/Beulah
- America/North_Dakota/Center
- America/North_Dakota/New_Salem
- America/Nuuk
- America/Ojinaga
- America/Panama
- America/Pangnirtung
- America/Paramaribo
- America/Phoenix
- America/Port-au-Prince
- America/Port_of_Spain
- America/Porto_Velho
- America/Puerto_Rico
- America/Punta_Arenas
- America/Rainy_River
- America/Rankin_Inlet
- America/Recife
- America/Regina
- America/Resolute
- America/Rio_Branco
- America/Santarem
- America/Santiago
- America/Santo_Domingo
- America/Sao_Paulo
- America/Scoresbysund
- America/Sitka
- America/St_Barthelemy
- America/St_Johns
- America/St_Kitts
- America/St_Lucia
- America/St_Thomas
- America/St_Vincent
- America/Swift_Current
- America/Tegucigalpa
- America/Thule
- America/Thunder_Bay
- America/Tijuana
- America/Toronto
- America/Tortola
- America/Vancouver
- America/Whitehorse
- America/Winnipeg
- America/Yakutat
- America/Yellowknife
- Asia/Dubai
- Asia/Hong_Kong
- Asia/Jerusalem
- Asia/Kuwait
- Asia/Qatar
- Asia/Seoul
- Asia/Shanghai
- Asia/Singapore
- Asia/Tokyo
- Atlantic/Azores
- Atlantic/Bermuda
- Atlantic/Canary
- Atlantic/Cape_Verde
- Atlantic/Faroe
- Atlantic/Madeira
- Atlantic/Reykjavik
- Atlantic/South_Georgia
- Atlantic/St_Helena
- Atlantic/Stanley
- Australia/Adelaide
- Australia/Brisbane
- Australia/Broken_Hill
- Australia/Currie
- Australia/Darwin
- Australia/Eucla
- Australia/Hobart
- Australia/Lindeman
- Australia/Lord_Howe
- Australia/Melbourne
- Australia/Perth
- Australia/Sydney
- Europe/Amsterdam
- Europe/Andorra
- Europe/Athens
- Europe/Belgrade
- Europe/Berlin
- Europe/Bratislava
- Europe/Brussels
- Europe/Bucharest
- Europe/Budapest
- Europe/Busingen
- Europe/Chisinau
- Europe/Copenhagen
- Europe/Dublin
- Europe/Gibraltar
- Europe/Guernsey
- Europe/Helsinki
- Europe/Isle_of_Man
- Europe/Istanbul
- Europe/Jersey
- Europe/Kiev
- Europe/Lisbon
- Europe/Ljubljana
- Europe/London
- Europe/Luxembourg
- Europe/Madrid
- Europe/Malta
- Europe/Mariehamn
- Europe/Minsk
- Europe/Monaco
- Europe/Moscow
- Europe/Oslo
- Europe/Paris
- Europe/Podgorica
- Europe/Prague
- Europe/Riga
- Europe/Rome
- Europe/San_Marino
- Europe/Skopje
- Europe/Sofia
- Europe/Stockholm
- Europe/Tallinn
- Europe/Tirane
- Europe/Vaduz
- Europe/Vatican
- Europe/Vienna
- Europe/Vilnius
- Europe/Warsaw
- Europe/Zurich
- Indian/Antananarivo
- Indian/Chagos
- Indian/Christmas
- Indian/Cocos
- Indian/Comoro
- Indian/Kerguelen
- Indian/Mahe
- Indian/Maldives
- Indian/Mauritius
- Indian/Mayotte
- Indian/Reunion
- Pacific/Apia
- Pacific/Auckland
- Pacific/Bougainville
- Pacific/Chatham
- Pacific/Chuuk
- Pacific/Easter
- Pacific/Efate
- Pacific/Enderbury
- Pacific/Fakaofo
- Pacific/Fiji
- Pacific/Funafuti
- Pacific/Galapagos
- Pacific/Gambier
- Pacific/Guadalcanal
- Pacific/Guam
- Pacific/Honolulu
- Pacific/Kiritimati
- Pacific/Kosrae
- Pacific/Kwajalein
- Pacific/Majuro
- Pacific/Marquesas
- Pacific/Midway
- Pacific/Nauru
- Pacific/Niue
- Pacific/Norfolk
- Pacific/Noumea
- Pacific/Pago_Pago
- Pacific/Palau
- Pacific/Pitcairn
- Pacific/Pohnpei
- Pacific/Port_Moresby
- Pacific/Rarotonga
- Pacific/Saipan
- Pacific/Tahiti
- Pacific/Tarawa
- Pacific/Tongatapu
- Pacific/Wake
- Pacific/Wallis
- UTC
DictionaryType:
Type: String
Default: Postgres
AllowedValues:
- Postgres
- MySQL
- MSSQL
AuditType:
Type: String
Default: Postgres
AllowedValues:
- Postgres
- MySQL
- MSSQL
- AuroraPostgres
- AuroraMySQL
CloudWatchLogSyncEnabled:
Type: String
Default: 'ON'
AllowedValues:
- 'OFF'
- 'ON'
Description: Enabling DataSunrise logs integration into CloudWatch
CloudWatchLogSyncInterval:
Type: String
Default: '5'
Description: DataSunrise & CloudWatch logs synchronization interval (minutes)
DeploymentName:
Type: String
Description: >-
Name that will be used as the prefix to the resourses' names that will be
created by the Cloud Formation script (only in lower case, not more than
15 symbols and not less than 5 symbols)
AllowedPattern: '[a-z][a-z0-9]*'
MaxLength: '15'
MinLength: '5'
DSDistributionUrl:
Type: String
Description: '(Optional) Url of the DataSunrise distribution package. Make sure that this URL will be accessible from your VPC. You may also use the path to the DataSunrise build placed in your S3 bucket, however, make sure to modify the S3AccessPolicy section of this template. || Example: s3://bucketnmae/installername.run || Example: https://linktothebuild'
DSLicenseType:
Type: String
Default: BYOL
AllowedValues:
- HourlyBilling
- BYOL
Description: >-
Preferred licensing type. If you select BYOL licensing, you must enter
valid license key into DSLicenseKey field.
DSLicenseKey:
Type: String
Default: Do not change this field if you are using hourly billing
Description: The DataSunrise license key.
DBUser:
Type: String
NoEcho: 'true'
Description: >-
The database administrator account username. Must begin with a letter and
contain only alphanumeric characters.
Default: dsuser
MinLength: '1'
MaxLength: '16'
AllowedPattern: '[a-zA-Z][a-zA-Z0-9]*'
ConstraintDescription: must begin with a letter and contain only alphanumeric characters
DBPassword:
Type: String
NoEcho: 'true'
Description: The database administrator account password.
MinLength: '8'
MaxLength: '41'
DSAdminPassword:
Type: String
NoEcho: 'true'
Description: The password must contain at least 8 characters, lower and upper case, numbers and special characters.
MinLength: '8'
MaxLength: '41'
AllowedPattern: ^.*(?=.{8,})(?=.*[a-zA-Z])(?=.*\d)(?=.*[\[\]|\\{}=_\/?<>,.:;~`"!@#$%^&*()+-]).*$
DictionaryDBClass:
Type: String
Description: >-
The database instance class that allocates the computational, network, and
memory capacity required by planned workload of this database instance.
Default: db.t3.medium
AllowedValues:
- db.t3.small
- db.t3.medium
- db.t3.large
- db.t3.xlarge
- db.t3.2xlarge
- db.m5.large
- db.m5.xlarge
- db.m5.2xlarge
- db.m5.4xlarge
- db.m5.12xlarge
- db.m5.24xlarge
- db.m6i.large
- db.m6i.xlarge
- db.m6i.2xlarge
- db.m6i.4xlarge
- db.m6i.8xlarge
- db.m6i.12xlarge
- db.m6i.16xlarge
- db.m6i.24xlarge
- db.m6i.32xlarge
- db.r5.large
- db.r5.xlarge
- db.r5.2xlarge
- db.r5.4xlarge
- db.r5.12xlarge
- db.r5.24xlarge
DBDictName:
Type: String
Description: >-
Name of the database to store DataSunrise configuration. Must begin with a
letter and contain only alphanumeric characters.
Default: dsdictionary
MinLength: '1'
MaxLength: '64'
AllowedPattern: '[a-zA-Z][a-zA-Z0-9]*'
ConstraintDescription: must begin with a letter and contain only alphanumeric characters
MultiAzDictionary:
AllowedValues:
- 'true'
- 'false'
Default: 'true'
Description: Dictionary RDS Multi-AZ
Type: String
DictionaryDBStorageSize:
Type: Number
Default: '20'
Description: 'The size of the database (Gb), minimum restriction by AWS is 20GB'
MinValue: '20'
MaxValue: '1024'
ConstraintDescription: must be between 5 and 1024Gb.
AuditDBClass:
Type: String
Description: >-
The database instance class that allocates the computational, network, and
memory capacity required by planned workload of this database instance.
Default: 4xlarge
AllowedValues:
- xlarge
- 2xlarge
- 4xlarge
- 8xlarge
- 12xlarge
- 16xlarge
- 24xlarge
DBAuditName:
Type: String
Description: >-
Name of the database to store DataSunrise audit journal. Must begin with a
letter and contain only alphanumeric characters.
Default: dsaudit
MinLength: '1'
MaxLength: '64'
AllowedPattern: '[a-zA-Z][a-zA-Z0-9]*'
ConstraintDescription: must begin with a letter and contain only alphanumeric characters
AuditDBStorageSize:
Type: Number
Default: '200'
Description: 'The size of the database (Gb), minimum restriction by AWS is 20GB'
MinValue: '20'
MaxValue: '1024'
ConstraintDescription: must be between 20 and 1024Gb.
MultiAzAudit:
AllowedValues:
- 'true'
- 'false'
Default: 'true'
Description: Make Audit RDS Multi-AZ
Type: String
TDBType:
Type: String
Description: Type of target database.
AllowedValues:
- Aurora MySQL
- Aurora PostgreSQL
- Cassandra
- DB2
- DynamoDB
- Elasticsearch
- Greenplum
- Hive
- Impala
- MariaDB
- MongoDB
- MSSQL
- MySQL
- Netezza
- Oracle
- PostgreSQL
- Redshift
- SAP HANA
- Teradata
- Vertica
AllowedPattern: .+
TDBHost:
Type: String
Description: >-
The target database endpoint address. Please make sure that database is
accessible from network, mentioned upper.
AllowedPattern: .+
TDBPort:
Type: String
Description: The target database endpoint port. It will be applied for proxy port too.
AllowedPattern: .+
TDBName:
Type: String
Description: The target database name.
AllowedPattern: .+
TDBLogin:
Type: String
Description: Login for target database user.
AllowedPattern: .+
TDBPassword:
Type: String
NoEcho: 'true'
Description: Password for target database user.
AllowedPattern: .+
TDBSecurityGroup:
Type: 'AWS::EC2::SecurityGroup::Id'
Description: Security Group of the Database to be protected.
TDBEncryption:
Type: String
Description: >-
(Optional) Use Encryption when connecting to the database (supported only
for Aurora MySQL, MySQL, MariaDB, Cassandra, DB2, DynamoDB, MongoDB, Oracle,
SAP HANA)
AllowedValues:
- 'true'
- 'false'
Default: 'false'
AWSCLIProxy:
Type: String
Description: >-
(Optional) In some cases of using private networks it is necessary to set
up proxy for AWS CLI (PutMetrics/S3). For example
http://[username[:password]@]<proxy_host>:<proxy_port>
AllowedPattern: '(https?:\/\/((\S*@)?([a-zA-Z0-9.-]+(:\d{1,5}){1})))?'
ConstraintDescription: 'You need specify the connection in a similar format "http://[username[:password]@]<proxy_host>:<proxy_port>"'
AlarmEmail:
Type: String
Description: >-
(Optional) The email address that receives SNS notifications when
DataSunrise service is down.
BackupS3BucketName:
Type: String
Description: >-
(Optional) Name of the S3 bucket for DataSunrise backups & logs. If empty,
the backup uploading will not be configured.
VMKeyPair:
Type: 'AWS::EC2::KeyPair::KeyName'
Description: Name of an existing EC2 VMKeyPair to enable SSH access to the instance
ConstraintDescription: must be the name of an existing EC2 VMKeyPair.
AllowedPattern: .+
VMInstanceType:
Type: String
Description: >-
The instance type that allocates the computational, network, and memory
capacity required by planned workload of this instance.
Default: m5.2xlarge
AllowedValues:
- t3.medium
- t3.large
- t3.xlarge
- t3.2xlarge
- m5.large
- m5.xlarge
- m5.2xlarge
- m5.4xlarge
- m5.12xlarge
- m5.24xlarge
- m6i.large
- m6i.xlarge
- m6i.2xlarge
- m6i.4xlarge
- m6i.8xlarge
- m6i.12xlarge
- m6i.16xlarge
- m6i.24xlarge
- m6i.32xlarge
- m6i.metal
- m6id.large
- m6id.xlarge
- m6id.2xlarge
- m6id.4xlarge
- m6id.8xlarge
- m6id.12xlarge
- m6id.16xlarge
- m6id.24xlarge
- m6id.32xlarge
- m6id.metal
- m7i.large
- m7i.xlarge
- m7i.2xlarge
- m7i.4xlarge
- m7i.8xlarge
- m7i.12xlarge
- m7i.16xlarge
- m7i.24xlarge
- m7i.48xlarge
- m7i.metal-24xl
- m7i.metal-48xl
- c5.large
- c5.xlarge
- c5.2xlarge
- c5.4xlarge
- c5.9xlarge
- c5.18xlarge
- f1.2xlarge
- f1.16xlarge
- g3.4xlarge
- g3.8xlarge
- g3.16xlarge
- g2.2xlarge
- g2.8xlarge
- p2.xlarge
- p2.8xlarge
- p2.16xlarge
- p3.2xlarge
- p3.8xlarge
- p3.16xlarge
- r4.large
- r4.xlarge
- r4.2xlarge
- r4.4xlarge
- r4.8xlarge
- r4.16xlarge
- x1.16xlarge
- x1e.xlarge
- x1e.2xlarge
- x1e.4xlarge
- x1e.8xlarge
- x1e.16xlarge
- x1e.32xlarge
- x1.32xlarge
- d2.xlarge
- d2.2xlarge
- d2.4xlarge
- d2.8xlarge
- i2.xlarge
- i2.2xlarge
- i2.4xlarge
- i2.8xlarge
- h1.2xlarge
- h1.4xlarge
- h1.8xlarge
- h1.16xlarge
- i3.large
- i3.xlarge
- i3.2xlarge
- i3.4xlarge
- i3.8xlarge
- i3.16xlarge
- t3a.medium
- t3a.large
- t3a.xlarge
- t3a.2xlarge
- r5.large
- r5.xlarge
- r5.2xlarge
- r5.4xlarge
- r5.8xlarge
- r5.12xlarge
- r5.16xlarge
- r5.24xlarge
- r5.metal
- r5d.large
- r5d.xlarge
- r5d.2xlarge
- r5d.4xlarge
- r5d.8xlarge
- r5d.12xlarge
- r5d.16xlarge
- r5d.24xlarge
- r5d.metal
- r5a.large
- r5a.xlarge
- r5a.2xlarge
- r5a.4xlarge
- r5a.8xlarge
- r5a.12xlarge
- r5a.16xlarge
- r5a.24xlarge
- r5ad.large
- r5ad.xlarge
- r5ad.2xlarge
- r5ad.4xlarge
- r5ad.8xlarge
- r5ad.12xlarge
- r5ad.16xlarge
- r5ad.24xlarge
VPC:
Description: Prefered VPC Id
Type: 'AWS::EC2::VPC::Id'
ConstraintDescription: must be the VPC Id of an existing Virtual Private Cloud.
AllowedPattern: .+
SubnetsASGLB:
Type: 'List<AWS::EC2::Subnet::Id>'
Description: >-
Load Balancer and EC2 instances subnets. Must be a part of mentioned VPC.
ConstraintDescription: must be the subnet Id of an existing subnet in mentioned VPC.
AllowedPattern: .+
AdminLocationCIDR:
AllowedPattern: '(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/(\d{1,2})'
ConstraintDescription: must be a valid IP CIDR range of the form x.x.x.x/x.
Description: >-
IP address range that can be used access port 22, for appliance
configuration access to the EC2 instances.
MaxLength: '18'
MinLength: '9'
Type: String
Default: '0.0.0.0/0'
UserLocationCIDR:
AllowedPattern: '(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/(\d{1,2})'
ConstraintDescription: must be a valid IP CIDR range of the form x.x.x.x/x.
Description: >-
IP address range that can be used access port 11000, for appliance
configuration access to the DataSunrise console and database proxy.
MaxLength: '18'
MinLength: '9'
Type: String
Default: '0.0.0.0/0'
EC2Count:
Type: String
Default: '2'
AllowedPattern: '[0-9]+'
Description: Count of EC2 DataSunrise Server to be launched.
AHealthCheckType:
Type: String
Description: >-
The service you want the health status from, Amazon EC2 or Elastic Load
Balancer.
Default: EC2
AllowedValues:
- EC2
- ELB
ELBScheme:
Type: String
Description: >-
For load balancers attached to an Amazon VPC, this parameter can be used
to specify the type of load balancer to use. Specify internal to create an
internal load balancer with a DNS name that resolves to private IP
addresses or internet-facing to create a load balancer with a publicly
resolvable DNS name, which resolves to public IP addresses.
AllowedValues:
- internal
- internet-facing
BucketKeyARN:
Type: String
Description: >-
(Optional) KMS Key ARN that was used for S3 bucket encryption. The key is
needed for DSDistribution download possibility. In case the bucket is not
encrypted, leave this field empty.
SubnetsConfig:
Type: 'List<AWS::EC2::Subnet::Id>'
Description: >-
Dictionary and Audit subnets. Must be a part of mentioned VPC. Please be sure
that you select at least two subnets.
ConstraintDescription: must be the subnet Id of an existing subnet in mentioned VPC.
AllowedPattern: .+
Conditions:
HasS3Name: !Not [!Equals ['', !Ref BackupS3BucketName]]
HasNoAlarm: !Equals ['', !Ref AlarmEmail]
HasAlarm: !Not [!Equals ['', !Ref AlarmEmail]]
HasBucketKeyARN: !Not [!Equals ['', !Ref BucketKeyARN]]
DictionaryPostgres: !Equals [ !Ref DictionaryType, 'Postgres']
DictionaryMysql: !Equals [!Ref DictionaryType, 'MySQL']
DictionaryMssql: !Equals [!Ref DictionaryType, 'MSSQL']
AuditPostgres: !Equals [ !Ref AuditType, 'Postgres']
AuditMysql: !Equals [!Ref AuditType, 'MySQL']
AuditMssql: !Equals [!Ref AuditType, 'MSSQL']
AuditAuroraPostgres: !Equals [ !Ref AuditType, 'AuroraPostgres']
AuditAuroraMysql: !Equals [!Ref AuditType, 'AuroraMySQL']
ParameterGroupPg: !Or [!Equals [!Ref DictionaryType, 'Postgres'],!Equals [ !Ref AuditType, 'Postgres']]
ParameterGroupMy: !Or [!Equals [!Ref DictionaryType, 'MySQL'], !Equals [ !Ref AuditType, 'MySQL']]
ParameterGroupMsDictionary: !Equals [!Ref DictionaryType, 'MSSQL']
ParameterGroupMsAudit: !Equals [!Ref DictionaryType, 'MSSQL']
isAuroraCluster: !Or [!Equals [!Ref AuditType, 'AuroraPostgres'],!Equals [ !Ref AuditType, 'AuroraMySQL']]
isNotAuroraCluster: !Not [!Or [!Equals [!Ref AuditType, 'AuroraPostgres'],!Equals [ !Ref AuditType, 'AuroraMySQL']]]
s3link: !Equals [!Select [0, !Split ['//', !Ref DSDistributionUrl]], 's3:']
HasADJoin: !Not [!Equals ['', !Ref DirectoryServiceId]]
HasADPasswd: !Not [!Equals ['', !Ref ADPassword]]
Metadata:
'AWS::CloudFormation::Interface':
ParameterGroups:
- Label:
default: Deployment name
Parameters:
- DeploymentName
- Label:
default: Virtual Machine Configuration
Parameters:
- TimeZone
- VMKeyPair
- VMInstanceType
- Label:
default: Network Configuration
Parameters:
- VPC
- AdminLocationCIDR
- UserLocationCIDR
- Label:
default: DataSunrise Configuration
Parameters:
- DSAdminPassword
- DSDistributionUrl
- BucketKeyARN
- DSLicenseType
- DSLicenseKey
- BackupS3BucketName
- AlarmEmail
- Label:
default: Dictionary & Audit Database Configuration
Parameters:
- DictionaryType
- DictionaryDBClass
- DictionaryDBStorageSize
- DBDictName
- MultiAzDictionary
- AuditType
- AuditDBClass
- AuditDBStorageSize
- DBAuditName
- MultiAzAudit
- DBUser
- DBPassword
- SubnetsConfig
- Label:
default: Target Database Configuration
Parameters:
- TDBType
- TDBHost
- TDBPort
- TDBName
- TDBLogin
- TDBPassword
- TDBSecurityGroup
- TDBEncryption
- Label:
default: Auto Scaling Group Configuration
Parameters:
- EC2Count
- AHealthCheckType
- SubnetsASGLB
- Label:
default: LoadBalancer Configuration
Parameters:
- ELBScheme
- Label:
default: DataSunrise & CloudWatch Integration
Parameters:
- CloudWatchLogSyncEnabled
- CloudWatchLogSyncInterval
- Label:
default: AWS DirectoryService Integration (optional)
Parameters:
- DirectoryServiceId
- ADLogin
- ADPassword
- ADCIDR
- Label:
default: Proxy Options
Parameters:
- AWSCLIProxy
Resources:
dsSecretAdminPassword:
Type: 'AWS::SecretsManager::Secret'
Properties:
Name: !Join ['',[!Ref DeploymentName, '-secret-admin-password']]
Description: DataSunrise Administrator Password
SecretString: !Ref DSAdminPassword
dsSecretTargetDBPassword:
Type: 'AWS::SecretsManager::Secret'
Properties:
Name: !Join ['', [!Ref DeploymentName, '-secret-tdb-password']]
Description: DataSunrise Target Database Password
SecretString: !Ref TDBPassword
dsSecretConfigDBPassword:
Type: 'AWS::SecretsManager::Secret'
Properties:
Name: !Join ['', [!Ref DeploymentName, '-secret-config-password']]
Description: DataSunrise Configuration Database Password
SecretString: !Ref DBPassword
dsSecretLicenseKey:
Type: 'AWS::SecretsManager::Secret'
Properties:
Name: !Join ['', [!Ref DeploymentName, '-secret-license-key']]
Description: DataSunrise License
SecretString: !Ref DSLicenseKey
dsSecretADPassword:
Type: AWS::SecretsManager::Secret
Condition: HasADPasswd
Properties:
Name: !Join ['', [!Ref DeploymentName, '-secret-ad-password']]
Description: AD join password
SecretString: !Ref ADPassword
DSTopic:
Type: 'AWS::SNS::Topic'
Condition: HasAlarm
Properties:
TopicName: !Join ['', [!Ref DeploymentName, '-DataSunrise-service-down']]
DSTopicSubscription:
Type: 'AWS::SNS::Subscription'
Condition: HasAlarm
Properties: