forked from komodorio/validkube
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathserverless.yml
57 lines (53 loc) · 1000 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
service: validkube
provider:
name: aws
ecr:
images:
validkube:
path: ./
lambdaHashingVersion: "20201221"
runtime: go1.x
stage: production
region: us-east-1
memorySize: 256 # 1MB increments, minimum 128, affects pricing
environment:
ALLOWED_ORIGIN: ${ssm:/validkube/config/allowed_origin}
package:
exclude:
- ./**
include:
- ./bin/**
# Endpoint config
functions:
Hello:
handler: bin/lambda
events:
- http:
path: /hello
method: get
cors: true
Kubeneat:
handler: bin/lambda
events:
- http:
path: /kubeneat
method: post
cors: true
Trivy:
image:
name: validkube
events:
- http:
path: /trivy
method: post
cors: true
Kubeval:
image:
name: validkube
events:
- http:
path: /kubeval
method: post
cors: true
resources:
- ${file(s3-bucket.yml)}