forked from mmajis/plantuml-serverless
-
Notifications
You must be signed in to change notification settings - Fork 9
/
serverless.yml
53 lines (48 loc) · 1.04 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: plantuml-serverless
frameworkVersion: ">=3.0.0"
variablesResolutionMode: 20210326
provider:
name: aws
# region: eu-central-1
# region: us-east-1
# region: ap-southeast-2
region: ${env:AWS_REGION}
stage: prod
profile: default
timeout: 30
logRetentionInDays: 30
lambdaHashingVersion: 20201221
environment:
stage: ${self:custom.stage}
ecr:
scanOnPush: true
images:
lambdacontainer:
path: ./
file: lambdacontainer/Dockerfile
apiGateway:
binaryMediaTypes:
- '*/*'
custom:
stage: ${opt:stage, self:provider.stage}
functions:
png:
url: true
image:
name: lambdacontainer
command:
- com.nitor.plantuml.lambda.PngHandler::handleRequest
svg:
url: true
image:
name: lambdacontainer
command:
- com.nitor.plantuml.lambda.SvgHandler::handleRequest
txt:
url: true
image:
name: lambdacontainer
command:
- com.nitor.plantuml.lambda.TxtHandler::handleRequest
resources:
Description: PlantUML Serverless