forked from stevespringett/nist-data-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
39 lines (34 loc) · 890 Bytes
/
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
service: nist-data-mirror
frameworkVersion: ">=1.15.0"
provider:
name: aws
runtime: java8
region: us-west-2
versionFunctions: true
memorySize: 256
timeout: 300
deploymentBucket: deployment-bucket-goes-here
package:
artifact: target/${self:service}.jar
functions:
nist-data-mirror:
handler: us.springett.nistdatamirror.NistDataMirror::handle
name: ${self:service}
description: Downloads NIST NVD CVE data feeds and mirrors in S3
iamRoleStatements:
- Effect: Allow
Action:
- s3:GetObject
- s3:PutObject
Resource: "arn:aws:s3:::bucket-name-goes-here/*"
environment:
S3_BUCKET_NAME: bucket-name-goes-here
events:
- schedule:
rate: rate(6 hours)
resources:
Resources:
NistDashdataDashmirrorLogGroup:
Type: AWS::Logs::LogGroup
Properties:
RetentionInDays: 30