-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
31 lines (27 loc) · 841 Bytes
/
serverless.yml
File metadata and controls
31 lines (27 loc) · 841 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
service: overpass
provider:
name: aws
runtime: python3.8
region: ${self:custom.variables.aws_region}
iamRoleStatements: ${self:custom.variables.iam_role_statements}
timeout: 15
vpc: ${self:custom.variables.vpc_config}
functions:
deploy:
handler: handler.handler
environment:
CLUSTER_NAME: ${self:custom.variables.cluster_name}
KUBE_USER: ${self:custom.variables.kube_user}
plugins:
- serverless-python-requirements
package:
individually: true
custom:
pythonRequirements:
usePipenv: true
variables:
cluster_name: ${env:KUBE_CLUSTER_NAME, 'eyeem-eks-cluster-stage'}
kube_user: ${env:KUBE_USER, 'lambda'}
vpc_config: ${file(./aws-config.yml):vpc_config}
iam_role_statements: ${file(./aws-config.yml):iam_role_statements}
aws_region: ${file(./aws-config.yml):aws_region}