-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathjitsi-server.cfn.yaml
977 lines (942 loc) · 28.1 KB
/
jitsi-server.cfn.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
AWSTemplateFormatVersion: '2010-09-09'
Description: Set up a personal Jitsi meet server as an EC2 instance.
See https://github.com/jtrefke/jitsi-meet-video-conference-server
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
- Label:
default: 'Server configuration'
Parameters:
- FullyQualifiedHostname
- InstanceSize
- InstanceMaximumHourlyPrice
- Label:
default: 'SSL certificate (optional, one recommended)'
Parameters:
- SslLetsencryptEmail
- SslCertificateCrt
- SslCertificateKey
- Label:
default: 'Jitsi meeting authentication (optional, disabled when empty)'
Parameters:
- MeetingCreatorUsername
- MeetingCreatorPassword
- Label:
default: 'Jitsi customizations (optional)'
Parameters:
- JitsiEnableWelcomePage
- JitsiRequireDisplayName
- JitsiStartAudioMuted
- JitsiStartVideoMuted
- JitsiDisableAudioLevels
- JitsiWatermarkImageUrl
- Label:
default: 'Service schedule (optional)'
Parameters:
- InstanceStartupTimes
- InstanceShutdownTimes
- Label:
default: 'Hooks to invoke pre-install, post-install/reboot (optional, disabled when empty)'
Parameters:
- HooksPreInstall
- HooksCustomize
- HooksPostInstall
- HooksWaitTime
- Label:
default: 'Developer options'
Parameters:
- InstallerVersion
- SshKeyName
- Label:
default: 'Work in progess / experimental'
Parameters:
- DialinSipAccountUid
- DialinSipPassword
- DialinSipPhoneNumbers
ParameterLabels:
FullyQualifiedHostname:
default: '* Hostname'
SslLetsencryptEmail:
default: 'Letsencrypt SSL certificate email'
SslCertificateCrt:
default: 'SSL certificate'
SslCertificateKey:
default: 'SSL certificate key'
MeetingCreatorUsername:
default: 'Meeting creator username'
MeetingCreatorPassword:
default: 'Meeting creator password'
HooksPreInstall:
default: 'Pre install hook'
HooksPostInstall:
default: 'Post install hook'
HooksCustomize:
default: 'Customization hook'
HooksWaitTime:
default: 'Wait time'
InstanceSize:
default: '* Instance Size'
InstanceMaximumHourlyPrice:
default: 'Maximum Hourly Price'
InstanceStartupTimes:
default: 'Scheduled startup times'
InstanceShutdownTimes:
default: 'Scheduled shutdown times'
JitsiWatermarkImageUrl:
default: 'Watermark image URL'
JitsiEnableWelcomePage:
default: 'Enable welcome page'
JitsiDisableAudioLevels:
default: 'Disable audio level indicators'
JitsiStartAudioMuted:
default: 'Mute audio'
JitsiStartVideoMuted:
default: 'Mute video'
JitsiRequireDisplayName:
default: 'Require display name'
DialinSipAccountUid:
default: 'SIP account UID'
DialinSipPassword:
default: 'SIP password'
DialinSipPhoneNumbers:
default: 'SIP phone numbers'
InstallerVersion:
default: 'Jitsi Installer Version'
SshKeyName:
default: 'EC2 SSH key name'
Parameters:
FullyQualifiedHostname:
Description: Fully qualified hostname (e.g. meet.example.com)
Type: String
MinLength: 4
MaxLength: 255
ConstraintDescription: Must be between 4 and 255 characters.
MeetingCreatorUsername:
Description: Username for the meeting creator account
Type: String
MinLength: 0
MaxLength: 255
MeetingCreatorPassword:
Description: Password for the meeting creator account
NoEcho: true
Type: String
MinLength: 0
MaxLength: 255
SslLetsencryptEmail:
Description: E-mail address for retrieving SSL certificate from letsencrypt.org
Type: String
MaxLength: '255'
ConstraintDescription: Must be less than 255 characters.
SslCertificateCrt:
Description: Existing SSL certificate (gzipped and base64 encoded (see "helpers/encode-file-parameter"))
Type: String
NoEcho: true
SslCertificateKey:
Description: Existing SSL certificate key (gzipped and base64 encoded (see "helpers/encode-file-parameter"))
Type: String
NoEcho: true
HooksPreInstall:
Description: Regular URL or encoded script (see "helpers/encode-file-parameter") to invoke before installation starts
Type: String
HooksCustomize:
Description: Encoded script (see "helpers/encode-file-parameter") to run or regular URL to invoke after Jisti install
Type: String
HooksPostInstall:
Description: Regular URL or encoded script (see "helpers/encode-file-parameter") to invoke after setup is finished and at each reboot
Type: String
HooksWaitTime:
Description: Time to wait after invoking hooks (in seconds)
Type: Number
Default: 121
JitsiWatermarkImageUrl:
Description: Custom watermark image URL that is overlayed in top left corner
Type: String
JitsiEnableWelcomePage:
Description: Enable welcome page at root path
Default: true
Type: String
AllowedValues: [true, false]
JitsiDisableAudioLevels:
Description: Disable display of audio level indicators for participants
Default: false
Type: String
AllowedValues: [true, false]
JitsiStartAudioMuted:
Description: Mute audio for new participants after the nth participant enters
Type: Number
Default: 4
MinValue: 0
MaxValue: 1000
JitsiStartVideoMuted:
Description: Mute video for new participants after the nth participant enters
Type: Number
Default: 8
MinValue: 0
MaxValue: 1000
JitsiRequireDisplayName:
Description: Require participant to enter a display name
Type: String
AllowedValues: [true, false]
Default: true
DialinSipAccountUid:
Description: Account UID for SIP account (e.g. [email protected])
Type: String
MinLength: 0
MaxLength: 255
DialinSipPassword:
Description: Password for SIP account
NoEcho: true
Type: String
MinLength: 0
MaxLength: 255
DialinSipPhoneNumbers:
Description: Password for SIP account
Type: String
AllowedPattern: '([^,]+((,[^,]+)+)?)?'
InstanceMaximumHourlyPrice:
Description: Maximum price per hour to bid on spot market; if not provided, default on-demand pricing will be used (see https://aws.amazon.com/ec2/spot/pricing/ for spot prices).
Type: String
AllowedPattern: '([0-9]\.[0-9]+|^$)'
ConstraintDescription: 'Must be a dot-separated decimal number'
InstanceStartupTimes:
Description: Schedule regular server start in cron syntax (e.g. "3 7 * * 1-5" for "Mon-Fri at 7:03am")
Type: String
AllowedPattern: "(.+ .+ .+ .+ .+|^$)"
InstanceShutdownTimes:
Description: Schedule regular server shutdown in cron syntax (e.g. "0 19 26 * *" for "every 26th of the month at 7:00pm")
Type: String
AllowedPattern: "(.+ .+ .+ .+ .+|^$)"
InstallerVersion:
Type: String
MinLength: 5
Description: Version of installer (release tag) or 'latest'
Default: latest
SshKeyName:
Type: String
Description: Existing keyname; to be used for debugging purposes only
InstanceSize:
Description: EC2 instance type
Type: String
Default: Small.t3.small
AllowedValues:
- '----- Choose from simple options below (recommended, widely available) -----'
- Micro.t3.micro
- Small.t3.small
- Medium.t3.medium
- Large.m5.large
- XtraLarge.m5.xlarge
- XtraXtralarge.m5.2xlarge
- '----- Comprehensive options (may be unavailable in certain regions) -----'
- t3.nano
- t3.micro
- t3.small
- t3.medium
- t3.large
- t3.xlarge
- t3.2xlarge
- t3a.nano
- t3a.micro
- t3a.small
- t3a.medium
- t3a.large
- t3a.xlarge
- t3a.2xlarge
- t2.nano
- t2.micro
- t2.small
- t2.medium
- t2.large
- t2.xlarge
- t2.2xlarge
- m5.large
- m5.xlarge
- m5.2xlarge
- m5.4xlarge
- m5.8xlarge
- m5.12xlarge
- m5.16xlarge
- m5.24xlarge
- m5.metal
- m5d.large
- m5d.xlarge
- m5d.2xlarge
- m5d.4xlarge
- m5d.8xlarge
- m5d.12xlarge
- m5d.16xlarge
- m5d.24xlarge
- m5d.metal
- m5a.large
- m5a.xlarge
- m5a.2xlarge
- m5a.4xlarge
- m5a.8xlarge
- m5a.12xlarge
- m5a.16xlarge
- m5a.24xlarge
- m5ad.large
- m5ad.xlarge
- m5ad.2xlarge
- m5ad.4xlarge
- m5ad.8xlarge
- m5ad.12xlarge
- m5ad.16xlarge
- m5ad.24xlarge
- m5n.large
- m5n.xlarge
- m5n.2xlarge
- m5n.4xlarge
- m5n.8xlarge
- m5n.12xlarge
- m5n.16xlarge
- m5n.24xlarge
- m5dn.large
- m5dn.xlarge
- m5dn.2xlarge
- m5dn.4xlarge
- m5dn.8xlarge
- m5dn.12xlarge
- m5dn.16xlarge
- m5dn.24xlarge
- m5zn.large
- m5zn.xlarge
- m5zn.2xlarge
- m5zn.3xlarge
- m5zn.6xlarge
- m5zn.12xlarge
- m5zn.metal
- m4.large
- m4.xlarge
- m4.2xlarge
- m4.4xlarge
- m4.10xlarge
- m4.16xlarge
- c5.large
- c5.xlarge
- c5.2xlarge
- c5.4xlarge
- c5.9xlarge
- c5.12xlarge
- c5.18xlarge
- c5.24xlarge
- c5.metal
- c5d.large
- c5d.xlarge
- c5d.2xlarge
- c5d.4xlarge
- c5d.9xlarge
- c5d.12xlarge
- c5d.18xlarge
- c5d.24xlarge
- c5d.metal
- c5a.large
- c5a.xlarge
- c5a.2xlarge
- c5a.4xlarge
- c5a.8xlarge
- c5a.12xlarge
- c5a.16xlarge
- c5a.24xlarge
- c5ad.large
- c5ad.xlarge
- c5ad.2xlarge
- c5ad.4xlarge
- c5ad.8xlarge
- c5ad.12xlarge
- c5ad.16xlarge
- c5ad.24xlarge
- c5n.large
- c5n.xlarge
- c5n.2xlarge
- c5n.4xlarge
- c5n.9xlarge
- c5n.18xlarge
- c5n.metal
- c4.large
- c4.xlarge
- c4.2xlarge
- c4.4xlarge
- c4.8xlarge
Mappings:
AWSInstanceType2Arch:
Micro.t3.micro:
InstanceType: t3.micro
Small.t3.small:
InstanceType: t3.small
Medium.t3.medium:
InstanceType: t3.medium
Large.m5.large:
InstanceType: m5.large
XtraLarge.m5.xlarge:
InstanceType: m5.xlarge
XtraXtralarge.m5.2xlarge:
InstanceType: m5.2xlarge
t3.nano:
InstanceType: t3.nano
t3.micro:
InstanceType: t3.micro
t3.small:
InstanceType: t3.small
t3.medium:
InstanceType: t3.medium
t3.large:
InstanceType: t3.large
t3.xlarge:
InstanceType: t3.xlarge
t3.2xlarge:
InstanceType: t3.2xlarge
t3a.nano:
InstanceType: t3a.nano
t3a.micro:
InstanceType: t3a.micro
t3a.small:
InstanceType: t3a.small
t3a.medium:
InstanceType: t3a.medium
t3a.large:
InstanceType: t3a.large
t3a.xlarge:
InstanceType: t3a.xlarge
t3a.2xlarge:
InstanceType: t3a.2xlarge
t2.nano:
InstanceType: t2.nano
t2.micro:
InstanceType: t2.micro
t2.small:
InstanceType: t2.small
t2.medium:
InstanceType: t2.medium
t2.large:
InstanceType: t2.large
t2.xlarge:
InstanceType: t2.xlarge
t2.2xlarge:
InstanceType: t2.2xlarge
m5.large:
InstanceType: m5.large
m5.xlarge:
InstanceType: m5.xlarge
m5.2xlarge:
InstanceType: m5.2xlarge
m5.4xlarge:
InstanceType: m5.4xlarge
m5.8xlarge:
InstanceType: m5.8xlarge
m5.12xlarge:
InstanceType: m5.12xlarge
m5.16xlarge:
InstanceType: m5.16xlarge
m5.24xlarge:
InstanceType: m5.24xlarge
m5.metal:
InstanceType: m5.metal
m5d.large:
InstanceType: m5d.large
m5d.xlarge:
InstanceType: m5d.xlarge
m5d.2xlarge:
InstanceType: m5d.2xlarge
m5d.4xlarge:
InstanceType: m5d.4xlarge
m5d.8xlarge:
InstanceType: m5d.8xlarge
m5d.12xlarge:
InstanceType: m5d.12xlarge
m5d.16xlarge:
InstanceType: m5d.16xlarge
m5d.24xlarge:
InstanceType: m5d.24xlarge
m5d.metal:
InstanceType: m5d.metal
m5a.large:
InstanceType: m5a.large
m5a.xlarge:
InstanceType: m5a.xlarge
m5a.2xlarge:
InstanceType: m5a.2xlarge
m5a.4xlarge:
InstanceType: m5a.4xlarge
m5a.8xlarge:
InstanceType: m5a.8xlarge
m5a.12xlarge:
InstanceType: m5a.12xlarge
m5a.16xlarge:
InstanceType: m5a.16xlarge
m5a.24xlarge:
InstanceType: m5a.24xlarge
m5ad.large:
InstanceType: m5ad.large
m5ad.xlarge:
InstanceType: m5ad.xlarge
m5ad.2xlarge:
InstanceType: m5ad.2xlarge
m5ad.4xlarge:
InstanceType: m5ad.4xlarge
m5ad.8xlarge:
InstanceType: m5ad.8xlarge
m5ad.12xlarge:
InstanceType: m5ad.12xlarge
m5ad.16xlarge:
InstanceType: m5ad.16xlarge
m5ad.24xlarge:
InstanceType: m5ad.24xlarge
m5n.large:
InstanceType: m5n.large
m5n.xlarge:
InstanceType: m5n.xlarge
m5n.2xlarge:
InstanceType: m5n.2xlarge
m5n.4xlarge:
InstanceType: m5n.4xlarge
m5n.8xlarge:
InstanceType: m5n.8xlarge
m5n.12xlarge:
InstanceType: m5n.12xlarge
m5n.16xlarge:
InstanceType: m5n.16xlarge
m5n.24xlarge:
InstanceType: m5n.24xlarge
m5dn.large:
InstanceType: m5dn.large
m5dn.xlarge:
InstanceType: m5dn.xlarge
m5dn.2xlarge:
InstanceType: m5dn.2xlarge
m5dn.4xlarge:
InstanceType: m5dn.4xlarge
m5dn.8xlarge:
InstanceType: m5dn.8xlarge
m5dn.12xlarge:
InstanceType: m5dn.12xlarge
m5dn.16xlarge:
InstanceType: m5dn.16xlarge
m5dn.24xlarge:
InstanceType: m5dn.24xlarge
m5zn.large:
InstanceType: m5zn.large
m5zn.xlarge:
InstanceType: m5zn.xlarge
m5zn.2xlarge:
InstanceType: m5zn.2xlarge
m5zn.3xlarge:
InstanceType: m5zn.3xlarge
m5zn.6xlarge:
InstanceType: m5zn.6xlarge
m5zn.12xlarge:
InstanceType: m5zn.12xlarge
m5zn.metal:
InstanceType: m5zn.metal
m4.large:
InstanceType: m4.large
m4.xlarge:
InstanceType: m4.xlarge
m4.2xlarge:
InstanceType: m4.2xlarge
m4.4xlarge:
InstanceType: m4.4xlarge
m4.10xlarge:
InstanceType: m4.10xlarge
m4.16xlarge:
InstanceType: m4.16xlarge
c5.large:
InstanceType: c5.large
c5.xlarge:
InstanceType: c5.xlarge
c5.2xlarge:
InstanceType: c5.2xlarge
c5.4xlarge:
InstanceType: c5.4xlarge
c5.9xlarge:
InstanceType: c5.9xlarge
c5.12xlarge:
InstanceType: c5.12xlarge
c5.18xlarge:
InstanceType: c5.18xlarge
c5.24xlarge:
InstanceType: c5.24xlarge
c5.metal:
InstanceType: c5.metal
c5d.large:
InstanceType: c5d.large
c5d.xlarge:
InstanceType: c5d.xlarge
c5d.2xlarge:
InstanceType: c5d.2xlarge
c5d.4xlarge:
InstanceType: c5d.4xlarge
c5d.9xlarge:
InstanceType: c5d.9xlarge
c5d.12xlarge:
InstanceType: c5d.12xlarge
c5d.18xlarge:
InstanceType: c5d.18xlarge
c5d.24xlarge:
InstanceType: c5d.24xlarge
c5d.metal:
InstanceType: c5d.metal
c5a.large:
InstanceType: c5a.large
c5a.xlarge:
InstanceType: c5a.xlarge
c5a.2xlarge:
InstanceType: c5a.2xlarge
c5a.4xlarge:
InstanceType: c5a.4xlarge
c5a.8xlarge:
InstanceType: c5a.8xlarge
c5a.12xlarge:
InstanceType: c5a.12xlarge
c5a.16xlarge:
InstanceType: c5a.16xlarge
c5a.24xlarge:
InstanceType: c5a.24xlarge
c5ad.large:
InstanceType: c5ad.large
c5ad.xlarge:
InstanceType: c5ad.xlarge
c5ad.2xlarge:
InstanceType: c5ad.2xlarge
c5ad.4xlarge:
InstanceType: c5ad.4xlarge
c5ad.8xlarge:
InstanceType: c5ad.8xlarge
c5ad.12xlarge:
InstanceType: c5ad.12xlarge
c5ad.16xlarge:
InstanceType: c5ad.16xlarge
c5ad.24xlarge:
InstanceType: c5ad.24xlarge
c5n.large:
InstanceType: c5n.large
c5n.xlarge:
InstanceType: c5n.xlarge
c5n.2xlarge:
InstanceType: c5n.2xlarge
c5n.4xlarge:
InstanceType: c5n.4xlarge
c5n.9xlarge:
InstanceType: c5n.9xlarge
c5n.18xlarge:
InstanceType: c5n.18xlarge
c5n.metal:
InstanceType: c5n.metal
c4.large:
InstanceType: c4.large
c4.xlarge:
InstanceType: c4.xlarge
c4.2xlarge:
InstanceType: c4.2xlarge
c4.4xlarge:
InstanceType: c4.4xlarge
c4.8xlarge:
InstanceType: c4.8xlarge
AWSRegionArch2AMI:
# Ubuntu AMIs per region as of 2020-12-21 01:12:06 UTC
# Data from: https://cloud-images.ubuntu.com/locator/ec2/releasesTable?_=1608513126
# Criteria: name='bionic', version='18.04 LTS', arch='amd64', instance_type='hvm:ebs-ssd', aki_id='hvm'
af-south-1:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-083e3cf5f76fe3666
ap-east-1:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-14c58865
ap-northeast-1:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-05855b7c54f91a1ae
ap-northeast-2:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-063acefae626a1e95
ap-northeast-3:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-091f16ae91eabba28
ap-south-1:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-0e93e3ec2cdacb2ef
ap-southeast-1:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-0311dbbdd981577d5
ap-southeast-2:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-0dea9aeaa95b9751b
ca-central-1:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-02534c23739f953e0
cn-north-1:
# Ubuntu 18.04 LTS (release 20201112)
HVM64: ami-05248307900d52e3a
cn-northwest-1:
# Ubuntu 18.04 LTS (release 20201112)
HVM64: ami-075c9f159ee0bdc1c
eu-central-1:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-08a099fcfc36dff3f
eu-north-1:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-0a7e3117f91bf347f
eu-south-1:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-0125f7def0bcc9629
eu-west-1:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-00c25f7948e360133
eu-west-2:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-076071bbe3485317c
eu-west-3:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-0b013f780a3e3b940
me-south-1:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-08cb887b2c7ff17c3
sa-east-1:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-0487f0735540f9ef5
us-east-1:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-053adf54573f777cf
us-east-2:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-0b9487791bf873774
us-west-1:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-07509d53ed1aa0b33
us-west-2:
# Ubuntu 18.04 LTS (release 20201211.1)
HVM64: ami-0cc158853935719b7
Conditions:
SshKeyNameProvided: !Not [!Equals [ !Ref SshKeyName, "" ]]
InstanceMaximumHourlyPriceProvided: !Not [!Equals [ !Ref InstanceMaximumHourlyPrice, "" ]]
ScheduledInstanceStartEnabled: !Not [!Equals [ !Ref InstanceStartupTimes, "" ]]
ScheduledInstanceShutdownEnabled: !Not [!Equals [ !Ref InstanceShutdownTimes, "" ]]
Resources:
JitsiSecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
GroupDescription: Jitsi Security Groups
SecurityGroupIngress:
- IpProtocol: tcp
FromPort: 22
ToPort: 22
CidrIp: 0.0.0.0/0
- IpProtocol: tcp
FromPort: 80
ToPort: 80
CidrIp: 0.0.0.0/0
- IpProtocol: tcp
FromPort: 443
ToPort: 443
CidrIp: 0.0.0.0/0
- IpProtocol: tcp
FromPort: 4443
ToPort: 4443
CidrIp: 0.0.0.0/0
- IpProtocol: udp
FromPort: 10000
ToPort: 20000
CidrIp: 0.0.0.0/0
JitsiAutoScalingGroup:
Type: AWS::AutoScaling::AutoScalingGroup
UpdatePolicy:
AutoScalingRollingUpdate:
MaxBatchSize: 1
MinInstancesInService: 1
PauseTime: "PT7M"
# WaitOnResourceSignals: true
SuspendProcesses:
- HealthCheck
- ReplaceUnhealthy
- AZRebalance
- AlarmNotification
- ScheduledActions
Properties:
AvailabilityZones:
Fn::GetAZs:
Ref: "AWS::Region"
LaunchConfigurationName:
Ref: "JitsiInstanceLaunchConfig"
MaxSize: "2"
MinSize: "1"
TerminationPolicies:
- NewestInstance
- Default
Tags:
- Key: Name
Value:
Ref: AWS::StackName
PropagateAtLaunch: true
- Key: Application
Value: Jitsi
PropagateAtLaunch: true
ScheduledInstanceStart:
Type: AWS::AutoScaling::ScheduledAction
Condition: ScheduledInstanceStartEnabled
Properties:
AutoScalingGroupName:
Ref: "JitsiAutoScalingGroup"
MaxSize: 2
MinSize: 1
Recurrence:
Ref: InstanceStartupTimes
ScheduledInstanceShutdown:
Type: AWS::AutoScaling::ScheduledAction
Condition: ScheduledInstanceShutdownEnabled
Properties:
AutoScalingGroupName:
Ref: "JitsiAutoScalingGroup"
MaxSize: 0
MinSize: 0
Recurrence:
Ref: InstanceShutdownTimes
WaitHandle:
Type: AWS::CloudFormation::WaitConditionHandle
WaitCondition:
Type: AWS::CloudFormation::WaitCondition
DependsOn: JitsiAutoScalingGroup
Properties:
Handle:
Ref: WaitHandle
Timeout: "4200"
JitsiInstanceLaunchConfig:
Type: AWS::AutoScaling::LaunchConfiguration
Properties:
InstanceMonitoring: false
KeyName:
Fn::If:
- SshKeyNameProvided
- Ref: SshKeyName
- Ref: AWS::NoValue
SpotPrice:
Fn::If:
- InstanceMaximumHourlyPriceProvided
- Ref: InstanceMaximumHourlyPrice
- Ref: AWS::NoValue
ImageId:
Fn::FindInMap:
- AWSRegionArch2AMI
- Ref: AWS::Region
- HVM64
SecurityGroups:
- Ref: JitsiSecurityGroup
InstanceType:
Fn::FindInMap:
- AWSInstanceType2Arch
- Ref: InstanceSize
- InstanceType
UserData:
Fn::Base64: !Join
- ''
- - |
#!/bin/bash
# script is placed in /var/lib/cloud/instances/*/scripts/part-*
# logs can be found in /var/log/cloud-init-output.log
ensure_python2_active() {
major_python_version=$(python -V | grep -Eo "[0-9]" | head -1)
[ "${major_python_version}" != "2" ] || return 0
if ! command -v "python2" >/dev/null 2>&1; then
apt install -y python-minimal || true
apt install -y python2 || true
fi
if command -v "python2" >/dev/null 2>&1; then
ln -sf $(command -v "python2") /usr/bin/python
fi
}
ensure_cfn_signal_installed() {
! command -v cfn-signal>/dev/null 2>&1 || return 0
# prepare instance with AWS CloudFormation utilities
# based on https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-helper-scripts-reference.html#cfn-helper-scripts-reference-downloads
ensure_python2_active
apt install -y python-requests || true
apt install -y python-setuptools || true
(
cd "$(mktemp -d)"
curl -sL "https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz" | \
tar -xzf -
cd ./*
python setup.py install
ln -sf /root/aws-cfn-bootstrap-latest/init/ubuntu/cfn-hup /etc/init.d/cfn-hup
)
}
export DEBIAN_FRONTEND=noninteractive
apt update -y
command -v curl >/dev/null 2>&1 || apt install -y curl
ensure_cfn_signal_installed
- !Sub |
# Ensure to signal exit to CloudFormation
trap 'cfn_signal_wait_exit $?' EXIT
set -e
cfn_signal_wait_exit() {
set +eu || true
local reason="SUCCESS"
if [ "$1" != "0" ]; then
reason="$(tail -c 100 /var/log/cloud-init-output.log | tr -d "\n" || true)"
[ -n "$reason" ] || reason="FAILURE"
fi
cfn-signal -e "$1" --stack "${AWS::StackName}" --region "${AWS::Region}" \
--reason "$reason" "${WaitHandle}"
}
- !If
- SshKeyNameProvided
- FIREWALL_ENABLE_SSH=true
- FIREWALL_ENABLE_SSH=false
- !Sub |
INSTALLER_VERSION='${InstallerVersion}'
# create Jitsi installer configuration using provided parameters
recode_parameter() {
[ -z "$1" ] || echo "$1" | base64 -d | zcat - | base64 | tr -d "\n"
}
starts_with_curl_url_scheme() {
<<<"$1" grep -Eiq "^(dict|file|ftps?|gopher|https?|imaps?|ldaps?|mqtt|pop3s?|rtmp|rtsp|scp|sftp|smbs?|smtps?|telnet|tftp)://"
}
keep_url_or_recode() {
starts_with_curl_url_scheme "$1" && echo "$1" || recode_parameter "$1"
}
INSTALL_DIR="$(mktemp -d)"
cat << EOF > "$INSTALL_DIR/jitsiinstallrc"
FULLY_QUALIFIED_HOSTNAME='${FullyQualifiedHostname}'
SSL_LETSENCRYPT_EMAIL='${SslLetsencryptEmail}'
SSL_CERTIFICATE_CRT="$(recode_parameter '${SslCertificateCrt}')"
SSL_CERTIFICATE_KEY="$(recode_parameter '${SslCertificateKey}')"
FIREWALL_ENABLE_SSH="$FIREWALL_ENABLE_SSH"
HOOKS_PRE_INSTALL="$(keep_url_or_recode '${HooksPreInstall}')"
HOOKS_POST_INSTALL="$(keep_url_or_recode '${HooksPostInstall}')"
HOOKS_CUSTOMIZE="$(keep_url_or_recode '${HooksCustomize}')"
HOOKS_WAIT_TIME='${HooksWaitTime}'
JITSI_MEETING_CREATOR_USERNAME='${MeetingCreatorUsername}'
JITSI_MEETING_CREATOR_PASSWORD='${MeetingCreatorPassword}'
JITSI_WATERMARK_IMAGE_URL='${JitsiWatermarkImageUrl}'
JITSI_ENABLE_WELCOME_PAGE='${JitsiEnableWelcomePage}'
JITSI_DISABLE_AUDIO_LEVELS=${JitsiDisableAudioLevels}
JITSI_START_AUDIO_MUTED=${JitsiStartAudioMuted}
JITSI_START_VIDEO_MUTED=${JitsiStartVideoMuted}
JITSI_REQUIRE_DISPLAY_NAME=${JitsiRequireDisplayName}
DIALIN_SIP_ACCOUNT_UID='${DialinSipAccountUid}'
DIALIN_SIP_PASSWORD='${DialinSipPassword}'
DIALIN_PSTN_NUMBERS='${DialinSipPhoneNumbers}'
EOF
- |
# install Jitsi with latest automated installer
INSTALLER_URL="https://api.github.com/repos/jtrefke/jitsi-meet-video-conference-installer/releases/latest"
if [ "${INSTALLER_VERSION:-}" != "latest" ]; then
INSTALLER_URL="https://api.github.com/repos/jtrefke/jitsi-meet-video-conference-installer/releases/tags/${INSTALLER_VERSION}"
fi
INSTALLER_TARBALL=$(curl -sL "${INSTALLER_URL}" | sed -En 's/.*tarball_url.+(http[^"]+).*/\1/p')
curl -sL "${INSTALLER_TARBALL}" | tar -xzf - -C "${INSTALL_DIR}"
mv "${INSTALL_DIR}/jtrefke-jitsi-meet-video-conference-installer"*/* "${INSTALL_DIR}"
chmod +x "${INSTALL_DIR}/installer/install-jitsi.sh"
"${INSTALL_DIR}/installer/install-jitsi.sh"
rm -rf "${INSTALL_DIR}"
Outputs:
JitsiServerHostname:
Description: Find Jitsi meet install at
Value: !Sub 'https://${FullyQualifiedHostname}'
Info:
Description: |
Allow a few minutes after launch until the setup has finished.
Client Downloads:
Android: https://play.google.com/store/apps/details?id=org.jitsi.meet /
iOS: https://itunes.apple.com/us/app/jitsi-meet/id1165103905 /
Slack: https://slack.com/oauth/authorize?client_id=116888949298.122751011265&scope=bot,commands /
Desktop: https://desktop.jitsi.org/Main/Download#stableline
Find more info about Jitsi at https://jitsi.org/
Value: Notes