-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemplate.yml
More file actions
31 lines (30 loc) · 831 Bytes
/
template.yml
File metadata and controls
31 lines (30 loc) · 831 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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Crawl customer news
Parameters:
ProjectName:
Description: News feed handler
Type: String
Default: News feed handler
Account:
Description: AWS AccountNumber
Type: Number
Resources:
GetNewsFunction:
Type: AWS::Serverless::Function
Properties:
FunctionName: getNews
Handler: feedStarter.getNews
Runtime: python3.6
CodeUri: ./
Role: !Sub arn:aws:iam::${Account}:role/lambda-nfh
Timeout: 900
GetNewsPerProfileFunction:
Type: AWS::Serverless::Function
Properties:
FunctionName: getNewsPerProfile
Handler: feedHandler.getNewsPerProfile
Runtime: python3.6
CodeUri: ./
Role: !Sub arn:aws:iam::${Account}:role/lambda-nfh
Timeout: 900