-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
51 lines (49 loc) · 1.01 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
org: dotuanson
app: aws-emandai-va-golang
service: serverless
frameworkVersion: '3'
provider:
name: aws
runtime: go1.x
stage: ${opt:stage}
region: ap-southeast-1
iam:
role:
statements:
- Effect: Allow
Action: 'athena:*'
Resource: '*'
- Effect: Allow
Action: 's3:*'
Resource:
- 'arn:aws:s3:::*'
- Effect: Allow
Action: 'glue:*'
Resource: '*'
package:
patterns:
- '!./**'
- ./bin/**
functions:
sttReport:
handler: bin/stt
description: Cronjob for exporting reports STT
logRetentionInDays: 7
timeout: 60
memorySize: 256
maximumRetryAttempts: 1
tags:
product: va
events:
- schedule: cron(10 14 * * ? *)
# ttsReport:
# handler: bin/tts
# description: Cronjob for exporting reports TTS
# logRetentionInDays: 7
# timeout: 60
# memorySize: 256
# maximumRetryAttempts: 0
# tags:
# product: va
# events:
# - schedule: rate(5 minutes)