-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaws-sam.yaml
25 lines (25 loc) · 1 KB
/
aws-sam.yaml
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: Streamdata.io Hacker News New Items Streaming to Amazon S3 Data Lake Using Lambda.
Resources:
newFromHN:
Type: 'AWS::Serverless::Function'
Properties:
Handler: index.handler
Runtime: nodejs6.10
CodeUri: s3://streamdata-serverless/streamdata-io-hacker-news-new/package.zip
Description: Streamdata.io Hacker News New Items Streaming to Amazon S3 Data Lake Using Lambda.
MemorySize: 128
Timeout: 300
Policies:
- LambdaInvokePolicy:
FunctionName: streamdata-io-hacker-news-new
- S3CrudPolicy:
BucketName: streaming-data-lake
Environment:
Variables:
appToken: Streamdata.io-Application-Token
s3bucket: streaming-data-lake
targetFolder: hacker-news-data
targetUrl: 'https://hacker-news.firebaseio.com/v0/newstories.json?print=pretty'
userAgent: YourAppName/0.1 by YourCompanyName