forked from QS03/lambda-selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
executable file
·37 lines (31 loc) · 1011 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
service: selenium-lambda
provider:
name: aws
runtime: python3.6
stage: ${opt:stage, 'dev'}
region: us-east-1
# It is not possible to reference files on directory levels above serverless.yml directly when working in AWS Lambda
# So, we either have to install these additional files as pip packages or `include` them to the package explicitly
# Included python files would be available parallel to serverless.yml and needs to be imported in this structure
# For example:
# fdc_data_dynamodb is present two levels above this serverless.yml, but in common.py it can be imported from cur dir.
package:
include:
- bin.zip
exclude:
- node_modules/**
- env/**
- config.json
functions:
handler:
handler: handler.handler
name: ${self:service}
description: Lambda selenium on AMI2
timeout: 600
reservedConcurrency: 1
events:
- schedule: rate(5 hours)
plugins:
- serverless-python-requirements
- serverless-pseudo-parameters
- serverless-prune-plugin