-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.yaml
33 lines (31 loc) · 951 Bytes
/
template.yaml
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Prism-BE aws Lambda server
Globals:
Function:
Timeout: 60
Resources:
SpringLambdaFunction:
Type: AWS::Serverless::Function
Properties:
Handler: com.prismworks.prism.StreamLambdaHandler::handleRequest
Runtime: java17
CodeUri: .
MemorySize: 512
Timeout: 60
Architectures:
- x86_64
SnapStart:
ApplyOn: PublishedVersions
AutoPublishAlias: "prod"
Environment:
Variables:
JAVA_TOOL_OPTIONS: -XX:+TieredCompilation -XX:TieredStopAtLevel=1
Policies:
- AWSLambdaBasicExecutionRole
Events:
SpringLambdaFunction:
Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api
Properties:
Path: /{proxy+}
Method: ANY