-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.yml
32 lines (29 loc) · 928 Bytes
/
template.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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Example API written with SpringBoot with the aws-serverless-java-container library
Globals:
Api:
# API Gateway regional endpoints
EndpointConfiguration: REGIONAL
Resources:
SpringBootMvcFunction:
Type: AWS::Serverless::Function
Properties:
Handler: com.amazonaws.serverless.sample.springboot2.StreamLambdaHandler::handleRequest
Runtime: java8
CodeUri: .
MemorySize: 1512
Policies: AWSLambdaBasicExecutionRole
Timeout: 60
Events:
HttpApiEvent:
Type: HttpApi
Properties:
TimeoutInMillis: 20000
PayloadFormatVersion: '1.0'
Outputs:
SpringBootPetStoreApi:
Description: URL for application
Value: !Sub 'https://${ServerlessHttpApi}.execute-api.${AWS::Region}.amazonaws.com/'
Export:
Name: SpringBootMvcApi