Repository navigation
Expand file tree
/
Copy pathtemplate.yaml
More file actions
executable file
·693 lines (653 loc) · 23.1 KB
/
Copy pathtemplate.yaml
File metadata and controls
executable file
·693 lines (653 loc) · 23.1 KB
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: 'Customize Live Streaming with Lambda@Edge'
Conditions:
CreateUser:
Fn::Not:
- Fn::Equals:
- Ref: EmailAddress
- ''
Parameters:
PriPullURL:
Description: Specify the primary source URL for the PULL input stream
Type: String
Default: "https://d15an60oaeed9r.cloudfront.net/live_stream_v2/sports_reel_with_markers.m3u8"
SecPullURL:
Description: Specify the secondary source URL for the PULL input stream
Type: String
Default: "https://d3h5srgm8b0t83.cloudfront.net/live_stream_v2/sports_reel_with_markers.m3u8"
# cognito
AlternateDomainNames:
Default: ''
Description: 'If you intend to use one or more custom domain names for the CloudFront
distribution, please set that up yourself on the CloudFront distribution after
deployment. If you provide those domain names now (comma-separated) the necessary
Cognito configuration will already be done for you. Alternatively, update the
Cognito configuration yourself after deployment: add sign in and sign out URLs
for your custom domains to the user pool app client settings.'
Type: CommaDelimitedList
CookieSettings:
Default: "{\n \"idToken\": \"Path=/; Secure; SameSite=Lax\",\n \"accessToken\"\
: \"Path=/; Secure; SameSite=Lax\",\n \"refreshToken\": \"Path=/; Secure; SameSite=Lax\"\
,\n \"nonce\": \"Path=/; Secure; HttpOnly; Max-Age=300; SameSite=Lax\"\n}"
Description: The settings for the cookies holding the JWT's. To be provided as
a JSON object
Type: String
EmailAddress:
Default: ''
Description: The email address of the user that will be created in the Cognito
User Pool. Leave empty to skip user creation.
Type: String
HttpHeaders:
Default: "{\n \"Content-Security-Policy\": \"default-src 'none'; img-src 'self';\
\ script-src 'self'; style-src 'self'; object-src 'none'; connect-src 'self'\
\ https://*.amazonaws.com https://*.amazoncognito.com\",\n \"Strict-Transport-Security\"\
: \"max-age=31536000; includeSubdomains; preload\",\n \"Referrer-Policy\":\
\ \"same-origin\",\n \"X-XSS-Protection\": \"1; mode=block\",\n \"X-Frame-Options\"\
: \"DENY\",\n \"X-Content-Type-Options\": \"nosniff\"\n}"
Description: The HTTP headers to set on all responses from CloudFront. To be provided
as a JSON object
Type: String
OAuthScopes:
Default: '["phone", "email", "profile", "openid", "aws.cognito.signin.user.admin"]'
Description: The OAuth scopes to request the User Pool to add to the access token
JWT. To be provided as a JSON array
Type: String
RedirectPathAuthRefresh:
Default: /refreshauth
Description: The URL path that should handle the JWT refresh request
Type: String
RedirectPathSignIn:
Default: /parseauth
Description: The URL path that should handle the redirect from Cognito after sign-in
Type: String
RedirectPathSignOut:
Default: /console/index.html
Description: The URL path that should handle the redirect from Cognito after sign-out
Type: String
Globals:
Function:
Timeout: 60
Mappings:
SourceCode:
General:
S3Bucket: ibc-demo-cloudfront-2019
KeyPrefix: demo
Resources:
MediaLiveRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: 2012-10-17
Statement:
-
Effect: Allow
Principal:
Service:
- "medialive.amazonaws.com"
Action:
- sts:AssumeRole
Policies:
-
PolicyName: !Sub "${AWS::StackName}-mediatranscode-role"
PolicyDocument:
Statement:
-
Effect: Allow
Action:
- ssm:DescribeParameters
- ssm:GetParameter
- ssm:GetParameters
- ssm:PutParameter
Resource:
- !Join ["", ["arn:aws:ssm:", Ref: "AWS::Region", ":", Ref: "AWS::AccountId", ":parameter/*"]]
CustomResourceRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: 2012-10-17
Statement:
-
Effect: Allow
Principal:
Service:
- lambda.amazonaws.com
Action:
- sts:AssumeRole
Path: "/"
Policies:
-
PolicyName: !Sub "${AWS::StackName}-custom-resource"
PolicyDocument:
Statement:
-
Effect: Allow
Action:
- logs:CreateLogGroup
- logs:CreateLogStream
- logs:PutLogEvents
Resource:
- !Join ["", ["arn:aws:logs:", Ref: "AWS::Region", ":", Ref: "AWS::AccountId", ":log-group:/aws/lambda/*"]]
-
Effect: Allow
Action:
- medialive:createInputSecurityGroup
- medialive:describeInput
- medialive:createInput
- medialive:deleteInput
- medialive:stopChannel
- medialive:createChannel
- medialive:deleteChannel
- medialive:deleteInputSecurityGroup
- medialive:describeChannel
- medialive:startChannel
- medialive:tagResource
Resource:
- !Join ["", ["arn:aws:medialive:", Ref: "AWS::Region", ":", Ref: "AWS::AccountId", ":*"]]
-
Effect: Allow
Action:
- mediapackage:createChannel
- mediapackage:deleteChannel
- mediapackage:listOriginEndpoints
- mediapackage:deleteOriginEndpoint
- mediapackage:createOriginEndpoint
Resource:
- !Join ["", ["arn:aws:mediapackage:", Ref: "AWS::Region", ":", Ref: "AWS::AccountId", ":*"]]
-
Effect: Allow
Action:
- ssm:PutParameter
Resource:
- !Join ["", ["arn:aws:ssm:", Ref: "AWS::Region", ":", Ref: "AWS::AccountId", ":parameter/*"]]
-
Effect: Allow
Action:
- iam:PassRole
Resource:
- !GetAtt MediaLiveRole.Arn
CustomResource:
Type: AWS::Serverless::Function
Properties:
CodeUri: src/cfn-custom-resources/elemental/
Description: Used to deploy custom resources
Handler: index.handler
Runtime: nodejs10.x
Timeout: 180
Role: !GetAtt CustomResourceRole.Arn
MediaPackageChannel:
Type: Custom::MediaPackageChannel
Properties:
ServiceToken: !GetAtt CustomResource.Arn
Resource: MediaPackageChannel
ChannelId: !Sub ${AWS::StackName}-livestream
MediaPackageDashEndpoint:
DependsOn: MediaPackageChannel
Type: Custom::MediaPackageDashEndpoint
Properties:
ServiceToken: !GetAtt CustomResource.Arn
Resource: MediaPackageEndPoint
EndPoint: DASH
ChannelId: !GetAtt MediaPackageChannel.ChannelId
MediaLiveInput:
Type: Custom::MediaLiveInput
Properties:
ServiceToken: !GetAtt CustomResource.Arn
Resource: MediaLiveInput
StreamName: !Sub ${AWS::StackName}-livestream
Type: URL_PULL
Cidr: ""
PriUrl: !Ref PriPullURL
PriUser: ""
PriPass: ""
SecUrl: !Ref SecPullURL
SecUser: ""
SecPass: ""
RoleArn: !GetAtt MediaLiveRole.Arn
PriMediaConnectArn: ""
SecMediaConnectArn: ""
MediaLiveChannel:
DependsOn: MediaLiveInput
DependsOn: MediaPackageChannel
Type: Custom::MediaLiveChannel
Properties:
ServiceToken: !GetAtt CustomResource.Arn
Resource: MediaLiveChannel
Name: !Sub ${AWS::StackName}-livestream
Resolution: 1080
Codec: AVC
Role: !GetAtt MediaLiveRole.Arn
InputId: !GetAtt MediaLiveInput.Id
Type: URL_PULL
MediaPackagePriUrl: !GetAtt MediaPackageChannel.PrimaryUrl
MediaPackagePriUser: !GetAtt MediaPackageChannel.PrimaryUser
MediaPackageSecUrl: !GetAtt MediaPackageChannel.SecondaryUrl
MediaPackageSecUser: !GetAtt MediaPackageChannel.SecondaryUser
MediaLiveChannelStart:
DependsOn: MediaLiveChannel
Type: Custom::MediaLiveChannelStart
Properties:
ServiceToken: !GetAtt CustomResource.Arn
Resource: MediaLiveChannelStart
ChannelId: !GetAtt MediaLiveChannel.ChannelId
# console
DemoBucket:
Type: 'AWS::S3::Bucket'
DemoBucketPolicy:
Type: 'AWS::S3::BucketPolicy'
Properties:
Bucket: !Ref DemoBucket
PolicyDocument:
Statement:
-
Effect: Allow
Principal:
CanonicalUser: !GetAtt DemoOriginAccessIdentity.S3CanonicalUserId
Action: 's3:GetObject'
Resource: !Join ["", ["arn:aws:s3:::", Ref: "DemoBucket", "/*"]]
DemoOriginAccessIdentity:
Type: AWS::CloudFront::CloudFrontOriginAccessIdentity
Properties:
CloudFrontOriginAccessIdentityConfig:
Comment: !Sub "access-identity-${DemoBucket}"
LambdaEdgeExecutionRole:
Properties:
AssumeRolePolicyDocument:
Statement:
- Action:
- sts:AssumeRole
Effect: Allow
Principal:
Service:
- edgelambda.amazonaws.com
- lambda.amazonaws.com
Version: 2012-10-17
ManagedPolicyArns:
- arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
Type: AWS::IAM::Role
CloudFront:
Type: AWS::CloudFront::Distribution
Properties:
DistributionConfig:
Comment: !Sub "${AWS::StackName}-cloudfront-distro"
Origins:
-
Id: S3-solution-website
DomainName: !Sub "${DemoBucket}.s3.${AWS::Region}.amazonaws.com"
S3OriginConfig:
OriginAccessIdentity: !Sub "origin-access-identity/cloudfront/${DemoOriginAccessIdentity}"
-
Id: mediapackage
DomainName: !GetAtt MediaPackageDashEndpoint.DomainName
CustomOriginConfig:
OriginProtocolPolicy: https-only
-
DomainName: dummy.org
Id: dummy-origin
CustomOriginConfig:
OriginProtocolPolicy: match-viewer
CacheBehaviors:
-
PathPattern: /console/log*
TargetOriginId: dummy-origin
AllowedMethods:
- GET
- HEAD
- OPTIONS
CachedMethods:
- GET
- HEAD
- OPTIONS
ForwardedValues:
QueryString: 'false'
ViewerProtocolPolicy: redirect-to-https
LambdaFunctionAssociations:
- EventType: viewer-request
LambdaFunctionARN:
Fn::GetAtt:
- CheckAuthHandlerCodeUpdate
- FunctionArn
-
PathPattern: /console*
TargetOriginId: S3-solution-website
AllowedMethods:
- GET
- HEAD
- OPTIONS
CachedMethods:
- GET
- HEAD
- OPTIONS
ForwardedValues:
QueryString: 'false'
ViewerProtocolPolicy: redirect-to-https
-
PathPattern: /unauthorized*
TargetOriginId: S3-solution-website
AllowedMethods:
- GET
- HEAD
- OPTIONS
CachedMethods:
- GET
- HEAD
- OPTIONS
ForwardedValues:
QueryString: 'false'
ViewerProtocolPolicy: redirect-to-https
-
PathPattern:
Ref: RedirectPathSignIn
Compress: true
ForwardedValues:
QueryString: true
LambdaFunctionAssociations:
- EventType: viewer-request
LambdaFunctionARN:
Fn::GetAtt:
- ParseAuthHandlerCodeUpdate
- FunctionArn
TargetOriginId: dummy-origin
ViewerProtocolPolicy: redirect-to-https
-
PathPattern:
Ref: RedirectPathAuthRefresh
Compress: true
ForwardedValues:
QueryString: true
LambdaFunctionAssociations:
- EventType: viewer-request
LambdaFunctionARN:
Fn::GetAtt:
- RefreshAuthHandlerCodeUpdate
- FunctionArn
TargetOriginId: dummy-origin
ViewerProtocolPolicy: redirect-to-https
-
PathPattern: /*mpd
TargetOriginId: mediapackage
AllowedMethods:
- GET
- HEAD
- OPTIONS
CachedMethods:
- GET
- HEAD
- OPTIONS
ForwardedValues:
QueryString: 'true'
Cookies:
Forward: all
Headers:
- '*'
ViewerProtocolPolicy: redirect-to-https
LambdaFunctionAssociations:
- EventType: origin-request
LambdaFunctionARN:
Fn::GetAtt:
- CheckAuthHandlerCodeUpdate
- FunctionArn
DefaultCacheBehavior:
TargetOriginId: mediapackage
AllowedMethods:
- GET
- HEAD
- OPTIONS
CachedMethods:
- GET
- HEAD
- OPTIONS
ForwardedValues:
QueryString: 'true'
Cookies:
Forward: all
Headers:
- Access-Control-Allow-Origin
- Access-Control-Request-Method
- Access-Control-Request-Header
ViewerProtocolPolicy: redirect-to-https
IPV6Enabled: 'true'
DefaultRootObject: "index.html"
CustomErrorResponses:
- ErrorCode: '404'
ResponsePagePath: "/index.html"
ResponseCode: '200'
- ErrorCode: '403'
ResponsePagePath: "/index.html"
ResponseCode: '200'
ViewerCertificate:
CloudFrontDefaultCertificate: 'true'
Enabled: 'true'
HttpVersion: 'http2'
DemoIamPolicy:
Type: "AWS::IAM::Policy"
Properties:
PolicyName: "livestreamDemoPolicy"
Roles:
- Ref: "CustomResourceRole"
PolicyDocument:
Version: 2012-10-17
Statement:
-
Effect: "Allow"
Action:
- s3:putObject
- s3:deleteObject
- s3:deleteBucket
Resource:
- !Join ["", ["arn:aws:s3:::", Ref: "DemoBucket"]]
- !Join ["", ["arn:aws:s3:::", Ref: "DemoBucket", "/*" ]]
-
Effect: "Allow"
Action:
- s3:getObject
Resource:
- !Join ["", ["arn:aws:s3:::",!FindInMap ["SourceCode", "General", "S3Bucket"]]]
- !Join ["", ["arn:aws:s3:::",!FindInMap ["SourceCode", "General", "S3Bucket"], "/*"]]
DemoConsole:
DependsOn: DemoIamPolicy
Type: Custom::DemoDeloy
Properties:
ServiceToken: !GetAtt CustomResource.Arn
Resource: DemoConsole
SrcBucket: !FindInMap ["SourceCode", "General", "S3Bucket"]
SrcPath: !FindInMap ["SourceCode", "General", "KeyPrefix"]
DemoBucket: !Ref DemoBucket
Exports:
!Sub |
//Configuration file generated by cloudformation
'us strict'
const exports = {
mediaLiveConsole: 'https://console.aws.amazon.com/medialive/home?region=${AWS::Region}#/channels/${MediaLiveChannel.ChannelId}',
dash_manifest: 'https://${CloudFront.DomainName}/out/v1${MediaPackageDashEndpoint.Manifest}'
}
# cognito
CheckAuthHandler:
Type: AWS::Serverless::Function
Properties:
CodeUri: src/lambda-edge/check-auth/
Handler: bundle.handler
Runtime: nodejs8.10 # Currently for Lambda@Edge still a faster runtime than nodejs10.x
Role: !GetAtt LambdaEdgeExecutionRole.Arn
Timeout: 5
ParseAuthHandler:
Type: AWS::Serverless::Function
Properties:
CodeUri: src/lambda-edge/parse-auth/
Handler: bundle.handler
Runtime: nodejs8.10 # Currently for Lambda@Edge still a faster runtime than nodejs10.x
Role: !GetAtt LambdaEdgeExecutionRole.Arn
Timeout: 5
RefreshAuthHandler:
Type: AWS::Serverless::Function
Properties:
CodeUri: src/lambda-edge/refresh-auth/
Handler: bundle.handler
Runtime: nodejs8.10 # Currently for Lambda@Edge still a faster runtime than nodejs10.x
Role: !GetAtt LambdaEdgeExecutionRole.Arn
Timeout: 5
ParseAuthHandlerCodeUpdate:
Type: Custom::LambdaCodeUpdate
Properties:
ServiceToken: !GetAtt LambdaCodeUpdateHandler.Arn
LambdaFunction: !GetAtt ParseAuthHandler.Arn
Configuration: !Sub >
{
"userPoolId": "${UserPool}",
"clientId": "${UserPoolClient}",
"oauthScopes": ${OAuthScopes},
"cognitoAuthDomain": "${UserPoolDomain.DomainName}",
"redirectPathSignIn": "${RedirectPathSignIn}",
"redirectPathSignOut": "${RedirectPathSignOut}",
"redirectPathAuthRefresh": "${RedirectPathAuthRefresh}",
"cookieSettings": ${CookieSettings},
"httpHeaders": ${HttpHeaders}
}
CheckAuthHandlerCodeUpdate:
Type: Custom::LambdaCodeUpdate
Properties:
ServiceToken: !GetAtt LambdaCodeUpdateHandler.Arn
LambdaFunction: !GetAtt CheckAuthHandler.Arn
Configuration: !Sub >
{
"userPoolId": "${UserPool}",
"clientId": "${UserPoolClient}",
"oauthScopes": ${OAuthScopes},
"cognitoAuthDomain": "${UserPoolDomain.DomainName}",
"redirectPathSignIn": "${RedirectPathSignIn}",
"redirectPathSignOut": "${RedirectPathSignOut}",
"redirectPathAuthRefresh": "${RedirectPathAuthRefresh}",
"cookieSettings": ${CookieSettings},
"httpHeaders": ${HttpHeaders}
}
RefreshAuthHandlerCodeUpdate:
Type: Custom::LambdaCodeUpdate
Properties:
ServiceToken: !GetAtt LambdaCodeUpdateHandler.Arn
LambdaFunction: !GetAtt RefreshAuthHandler.Arn
Configuration: !Sub >
{
"userPoolId": "${UserPool}",
"clientId": "${UserPoolClient}",
"oauthScopes": ${OAuthScopes},
"cognitoAuthDomain": "${UserPoolDomain.DomainName}",
"redirectPathSignIn": "${RedirectPathSignIn}",
"redirectPathSignOut": "${RedirectPathSignOut}",
"redirectPathAuthRefresh": "${RedirectPathAuthRefresh}",
"cookieSettings": ${CookieSettings},
"httpHeaders": ${HttpHeaders}
}
LambdaCodeUpdateHandler:
Type: AWS::Serverless::Function
Properties:
CodeUri: src/cfn-custom-resources/lambda-code-update/
Handler: index.handler
Runtime: nodejs10.x
Policies:
- Version: "2012-10-17"
Statement:
- Effect: Allow
Action:
- lambda:GetFunction
- lambda:UpdateFunctionCode
Resource:
- !GetAtt ParseAuthHandler.Arn
- !GetAtt CheckAuthHandler.Arn
- !GetAtt RefreshAuthHandler.Arn
User:
Condition: CreateUser
Properties:
UserPoolId:
Ref: UserPool
Username:
Ref: EmailAddress
Type: AWS::Cognito::UserPoolUser
UserPool:
Properties:
AdminCreateUserConfig:
AllowAdminCreateUserOnly: true
UserPoolName:
Fn::Sub: ${AWS::Region}-${AWS::StackName}-${AWS::AccountId}
UsernameAttributes:
- email
Type: AWS::Cognito::UserPool
UserPoolClient:
Properties:
UserPoolId:
Ref: UserPool
Type: AWS::Cognito::UserPoolClient
UserPoolClientUpdate:
Properties:
AlternateDomainNames:
Ref: AlternateDomainNames
CloudFrontDistributionDomainName:
Fn::GetAtt:
- CloudFront
- DomainName
OAuthScopes:
Ref: OAuthScopes
RedirectPathSignIn:
Ref: RedirectPathSignIn
RedirectPathSignOut:
Ref: RedirectPathSignOut
ServiceToken:
Fn::GetAtt:
- UserPoolClientUpdateHandler
- Arn
UserPoolClientId:
Ref: UserPoolClient
UserPoolId:
Ref: UserPool
Type: Custom::UserPoolClientUpdate
UserPoolClientUpdateHandler:
Properties:
CodeUri: src/cfn-custom-resources/user-pool-client/
Handler: index.handler
Policies:
- Statement:
- Action:
- cognito-idp:UpdateUserPoolClient
Effect: Allow
Resource:
Fn::GetAtt:
- UserPool
- Arn
Version: '2012-10-17'
Runtime: nodejs10.x
Type: AWS::Serverless::Function
UserPoolDomain:
Properties:
ServiceToken:
Fn::GetAtt:
- UserPoolDomainHandler
- Arn
UserPoolId:
Ref: UserPool
Type: Custom::UserPoolDomain
UserPoolDomainHandler:
Properties:
CodeUri: src/cfn-custom-resources/user-pool-domain/
Handler: index.handler
Policies:
- Statement:
- Action: cognito-idp:DescribeUserPoolDomain
Effect: Allow
Resource: '*'
- Action:
- cognito-idp:CreateUserPoolDomain
- cognito-idp:DeleteUserPoolDomain
Effect: Allow
Resource:
Fn::GetAtt:
- UserPool
- Arn
Version: '2012-10-17'
Runtime: nodejs10.x
Type: AWS::Serverless::Function
Outputs:
CloudFrontDashEnpoint:
Description: DASH playback URL
Value: !Sub https://${CloudFront.DomainName}/out/v1${MediaPackageDashEndpoint.Manifest}
DemoConsole:
Description: Console URL
Value: !Sub https://${CloudFront.DomainName}/console/index.html