forked from komodorio/validkube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
92 lines (88 loc) · 1.61 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
service: validkube
provider:
name: aws
ecr:
images:
validkube:
path: ./
platform: linux/amd64
runtime: go1.x
stage: production
timeout: 30
region: us-east-1
memorySize: 256 # 1MB increments, minimum 128, affects pricing
architecture: x86_64
environment:
ALLOWED_ORIGIN: https://validkube.com
package:
exclude:
- ./**
include:
- ./backend/**
# Endpoint config
functions:
Hello:
handler: bin/lambda
events:
- http:
path: /hello
method: get
cors: true
Neating:
image:
name: validkube
events:
- http:
path: /kubeneat
method: post
cors: true
TrivyConfig:
image:
name: validkube
events:
- http:
path: /trivy/config
method: post
cors: true
TrivySBOM:
image:
name: validkube
events:
- http:
path: /trivy/sbom
method: post
cors: true
Kubeval:
image:
name: validkube
events:
- http:
path: /kubeval
method: post
cors: true
Polaris:
image:
name: validkube
events:
- http:
path: /polaris
method: post
cors: true
Kubescape:
image:
name: validkube
events:
- http:
path: /kubescape
method: post
cors: true
Kubeconform:
image:
name: validkube
events:
- http:
path: /kubeconform
method: post
cors: true
resources:
- ${file(s3-bucket.yml)}