-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserverless.yml
75 lines (69 loc) · 2.35 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
org: georgedavis
app: filestoragesecurity-malwaretest
service: filestoragesecurity-malwaretest
frameworkVersion: '3'
custom:
defaultStage: dev
stages:
dev:
awscli_profile: default
aws_region: us-east-2
buckets: filestoragesecurity-ingestbucket,filestoragesecurity-ingestbucket-2,filestoragesecurity-ingestbucket-3-ca
time_interval_in_hours: 3
prod:
awscli-profile: serverless
aws_region: us-east-1
buckets: serverless-cloudone
time_interval_in_hours: 3
provider:
name: aws
runtime: python3.8
profile: ${self:custom.stages.${opt:stage, self:custom.defaultStage}.awscli_profile}
stage: ${opt:stage, self:custom.defaultStage}
region: ${self:custom.stages.${opt:stage, self:custom.defaultStage}.aws_region}
memorySize: 512
timeout: 300
logRetentionInDays: 14
environment:
awsRegion: ${self:custom.stages.${opt:stage, self:custom.defaultStage}.aws_region}
s3IngestBucketName: ${self:custom.stages.${opt:stage, self:custom.defaultStage}.buckets}
tags:
BusinessCase: FSS-MalwareTest
Owner: TrendMicro
CodeSource: https://github.com/GeorgeDavis-TM/filestoragesecurity-malwaretest.git
stackTags:
BusinessCase: FSS-MalwareTest
Owner: TrendMicro
CodeSource: https://github.com/GeorgeDavis-TM/filestoragesecurity-malwaretest.git
iam:
role:
name: filestoragesecurity-malwaretest-${opt:stage, self:custom.defaultStage}
path: /
statements:
- Effect: 'Allow'
Resource: '*'
Action:
- 's3:*'
- 'kms:*'
- 'logs:*'
tags:
BusinessCase: FSS-MalwareTest
Owner: TrendMicro
CodeSource: https://github.com/GeorgeDavis-TM/filestoragesecurity-malwaretest.git
lambdaHashingVersion: 20201221
functions:
main:
handler: handler.main
description: Scheduled run of File Storage Security Malware Test Tasks
events:
- schedule:
name: scheduled-filestoragesecurity-malwaretest-${opt:stage, self:custom.defaultStage}
description: 'Cloud One File Storage Security Hourly Malware Test Schedule'
rate: cron(0 0/${self:custom.stages.${opt:stage, self:custom.defaultStage}.time_interval_in_hours} * * ? *)
plugins:
- serverless-python-requirements
package:
individually: true
excludeDevDependencies: false
include:
- "!node_modules/**"