forked from WiiLink24/NewsChannel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
33 lines (30 loc) · 776 Bytes
/
Copy pathserverless.yml
File metadata and controls
33 lines (30 loc) · 776 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
32
33
service: wiinewspr-generator
provider:
name: aws
runtime: provided.al2
region: us-east-1
environment:
S3_BUCKET: wii.rauln.com
S3_PREFIX: news/1/049/
TZ: America/Puerto_Rico # Important! We need the Lambda to generate correct "currentHour"
iamRoleStatements:
- Effect: Allow
Action:
- s3:PutObject
- s3:PutObjectAcl
Resource: "arn:aws:s3:::wii.rauln.com/news/*"
functions:
generateNewsBinary:
handler: bootstrap
timeout: 30
memorySize: 1536
events:
- schedule:
rate: cron(30 * * * ? *)
name: wiinewspr-every-30min
description: Generate Wii News PR binary file every hour at 30 minutes past
package:
patterns:
- bootstrap
- WiiNewsPR
- ../Private.pem