-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserverless.yml
56 lines (46 loc) · 1.11 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
service: veracode-badges
# app and org for use with dashboard.serverless.com
app: my-veracode
org: yaakovlerer
# You can pin your service to only deploy with a specific Serverless version
# Check out our docs for more details
frameworkVersion: '2'
useDotenv: true
package:
exclude:
- test/**
- '**/*.test.js'
- 'empty.env'
- resources/**
- permissions/**
custom:
prod:
Stack: ExampleSite
LogLevel: info
dev:
Stack: ExampleSite
LogLevel: debug
settings:
logLevel: ${self:custom.${opt:stage, self:provider.stage, 'dev'}.LogLevel}
provider:
name: aws
stage: prod # default settings
runtime: nodejs12.x
region: ap-southeast-2
apiGateway:
shouldStartNameWithService: true
environment: ${self:custom.settings}
lambdaHashingVersion: 20201221
functions:
# Listen to a call from GitHub Workflow
badgeHandler:
handler: badgeHandler.handle
memorySize: 128
timeout: 10
environment:
VERACODE_API_KEY: ${env:VERACODE_API_KEY}
VERACODE_API_SECRET: ${env:VERACODE_API_SECRET}
events:
- http:
path: /badge
method: get