forked from mneedham/community-graph-import
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
71 lines (65 loc) · 2.15 KB
/
serverless.yml
File metadata and controls
71 lines (65 loc) · 2.15 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
service: community-graph
frameworkVersion: ">=1.2.0 <2.0.0"
custom:
stage: "${opt:stage, self:provider.stage}"
kmsKeyArn: ${file(env.yml):${self:custom.stage}.KEY_ARN}
provider:
name: aws
runtime: python3.6
environment: ${file(env.yml):${self:custom.stage}}
timeout: 180
iamRoleStatements:
- Effect: Allow
Action:
- KMS:Decrypt
Resource:
- ${self:custom.kmsKeyArn}
plugins:
- serverless-python-requirements
- serverless-kms-secrets
functions:
page-summary:
name: CommunityGraphGeneratePageSummary-${self:provider.environment.TITLE}
handler: handler.generate_page_summary
events:
- schedule: rate(1 hour)
twitter-import:
name: CommunityGraphTwitterImport-${self:provider.environment.TITLE}
handler: handler.twitter_import
events:
- schedule: rate(1 hour)
twitter-clean-links:
name: CommunityGraphTwitterCleanLinks-${self:provider.environment.TITLE}
handler: handler.twitter_clean_links
events:
- schedule: rate(1 hour)
twitter-hydrate-links:
name: CommunityGraphTwitterHydrateLinks-${self:provider.environment.TITLE}
handler: handler.twitter_hydrate_links
events:
- schedule: rate(1 hour)
twitter-unshorten-links:
name: CommunityGraphTwitterUnshortenLinks-${self:provider.environment.TITLE}
handler: handler.twitter_unshorten_links
events:
- schedule: rate(1 hour)
github-import:
name: CommunityGraphGitHubImport-${self:provider.environment.TITLE}
handler: handler.github_import
events:
- schedule: rate(1 hour)
meetup-events-import:
name: CommunityGraphMeetupEventsImport-${self:provider.environment.TITLE}
handler: handler.meetup_events_import
events:
- schedule: rate(1 hour)
meetup-groups-import:
name: CommunityGraphMeetupGroupsImport-${self:provider.environment.TITLE}
handler: handler.meetup_groups_import
events:
- schedule: rate(1 day)
so-import:
name: CommunityGraphStackOverflowImport-${self:provider.environment.TITLE}
handler: handler.so_import
events:
- schedule: rate(1 hour)