-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.yaml
More file actions
46 lines (42 loc) · 1.21 KB
/
template.yaml
File metadata and controls
46 lines (42 loc) · 1.21 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
Transform: AWS::Serverless-2016-10-31
Parameters:
StackName:
Type: String
Default: stdream-reader-test
Resources:
writeToTable:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs6.10
Policies:
- DynamoDBCrudPolicy:
TableName:
Fn::ImportValue:
!Sub "${StackName}:table"
Environment:
Variables:
TABLE_NAME:
Fn::ImportValue:
!Sub "${StackName}:table"
Events:
EveryFiveMinAt0:
Type: Schedule
Properties:
Schedule: cron(0,5,10,15,20,25,30,35,40,45,50,55 * * * ? *)
EveryFiveMinAt1:
Type: Schedule
Properties:
Schedule: cron(1,6,11,16,21,26,31,36,41,46,51,56 * * * ? *)
EveryFiveMinAt2:
Type: Schedule
Properties:
Schedule: cron(2,7,12,17,22,27,32,37,42,47,52,57 * * * ? *)
EveryFiveMinAt3:
Type: Schedule
Properties:
Schedule: cron(3,8,13,18,23,28,33,38,43,48,53,58 * * * ? *)
EveryFiveMinAt4:
Type: Schedule
Properties:
Schedule: cron(4,9,14,19,24,29,34,39,44,49,54,59 * * * ? *)