-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
76 lines (76 loc) · 2.17 KB
/
serverless.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
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
service: cloudformation-github-sheets-sync
plugins:
- serverless-sam
provider:
name: aws
runtime: nodejs10.x
environment:
GithubToken:
Ref: GithubToken
Repository:
Ref: Repository
BlacklistLabels:
Ref: BlacklistLabels
Labels:
Ref: Labels
State:
Ref: State
GooglePrivateKey:
Ref: GooglePrivateKey
GoogleClientEmail:
Ref: GoogleClientEmail
SpreadsheetId:
Ref: SpreadsheetId
SheetName:
Ref: SheetName
functions:
sync:
handler: src/sync.handler
timeout: 60
memory: 512
events:
- schedule:
rate:
Ref: UpdateSchedule
resources:
Parameters:
UpdateSchedule:
Default: cron(0/30 12-23 ? * MON-FRI *) # Every 30 minutes, between 12:00pm (UTC) and 11:00pm (UTC), Monday - Friday.
Type: String
Description: The CloudWatch ScheduleExpression defining the interval the issues are synced at.
GithubToken:
Default: ''
Type: String
Description: The Github Authentication token used for fetching issues.
Repository:
Default: 'sammarks/cloudformation-github-sheets-sync'
Type: String
Description: A Github repository to sync, in the format of 'owner/repository'
Labels:
Default: 'reporting'
Type: String
Description: A comma-separated list of labels to filter on.
BlacklistLabels:
Default: 'reporting'
Type: String
Description: A comma-separated list of labels to not include in the spreadsheet.
State:
Default: 'OPEN,CLOSED'
Type: String
Description: A comma-separated list of states to filter on.
GoogleClientEmail:
Default: ''
Type: String
Description: Your service account's email address for Google, to be able to edit the sheet.
GooglePrivateKey:
Default: ''
Type: String
Description: Your service account's private key for Google, to be able to edit the sheet.
SpreadsheetId:
Default: ''
Type: String
Description: The Google Spreadsheet ID to update.
SheetName:
Default: 'Github Issues'
Type: String
Description: The name of the sheet to update inside the spreadsheet.