-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.yaml
More file actions
44 lines (42 loc) · 976 Bytes
/
template.yaml
File metadata and controls
44 lines (42 loc) · 976 Bytes
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
Description: >
LineBot-FunFeatures
Parameters:
LineUserID:
NoEcho: true
Type: String
CelebratingTarget:
NoEcho: true
Type: String
LineBotSecret:
NoEcho: true
Type: String
LineBotAccessToken:
NoEcho: true
Type: String
Resources:
ResponseForPostRequests:
Type: AWS::Serverless::Function
Properties:
CodeUri: ./src
Handler: app.main.response
Runtime: python3.7
Environment:
Variables:
LINE_USER_ID:
Ref: LineUserID
CELEBRATING_TARGET:
Ref: CelebratingTarget
LINEBOT_SECRET:
Ref: LineBotSecret
LINEBOT_ACCESS_TOKEN:
Ref: LineBotAccessToken
Policies: AmazonDynamoDBFullAccess
Timeout: 30
Events:
PutRequest:
Type: Api
Properties:
Path: /callback/
Method: post