-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtemplate.yml
44 lines (44 loc) · 1.05 KB
/
template.yml
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Globals:
Function:
Runtime: nodejs12.x
Timeout: 30
MemorySize: 128
Resources:
ChimeMeetingsAccessPolicy:
Type: AWS::IAM::Policy
Properties:
PolicyName: ChimeMeetingsAccess
PolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: Allow
Action:
- 'chime:*'
Resource: '*'
Roles:
- Ref: MeetingJoinLambdaRole
MeetingIndexLambda:
Type: 'AWS::Serverless::Function'
Properties:
Handler: handlers.index
Events:
Api1:
Type: Api
Properties:
Path: /{proxy+}
Method: GET
MeetingJoinLambda:
Type: AWS::Serverless::Function
Properties:
Handler: handlers.join
Events:
Api1:
Type: Api
Properties:
Path: /join
Method: POST
Outputs:
ApiURL:
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/index.html"